We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06f0ca4 commit 22f2904Copy full SHA for 22f2904
src/Strava/API/Service/REST.php
@@ -56,7 +56,7 @@ private function getToken()
56
private function getResult($response)
57
{
58
$status = $response->getStatusCode();
59
- if ($status == 200) {
+ if ($status == 200 || $status == 201) {
60
return json_decode($response->getBody(), JSON_PRETTY_PRINT);
61
} else {
62
return [$status => $response->getReasonPhrase()];
0 commit comments