Skip to content

php#1

Open
ananan123bot wants to merge 2 commits intopermag-ir:masterfrom
ananan123bot:patch-4
Open

php#1
ananan123bot wants to merge 2 commits intopermag-ir:masterfrom
ananan123bot:patch-4

Conversation

@ananan123bot
Copy link
Copy Markdown

= 500) { // do not wat to DDOS server if something goes wrong sleep(10); return false; } else if ($http_code != 200) { $response = json_decode($response, true); error_log("Request has failed with error {$response['error_code']}: {$response['description']}\n"); if ($http_code == 401) { throw new Exception('Invalid access token provided'); } return false; } else { $response = json_decode($response, true); if (isset($response['description'])) { error_log("Request was successfull: {$response['description']}\n"); } $response = $response['result']; } return $response; } function apiRequest($method, $parameters) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant