Name |
Last commit
|
Last update |
---|---|---|
.. | ||
apidoc | ||
authclient | ||
bootstrap | ||
codeception | ||
composer | ||
debug | ||
elasticsearch | ||
faker | ||
gii | ||
imagine | ||
jui | ||
mongodb | ||
redis | ||
smarty | ||
sphinx | ||
swiftmailer | ||
twig | ||
README.md |
Hello, I used **Yii2 authclient** to build a Github OAuth (2.0) client, and performed a POST call to create a Github repository hook. But I got this exception: ``` exception 'yii\authclient\InvalidResponseException' with message ' Request failed with code: 201, message: { "url": "https://api.github.com/repos/ychongsaytc/example/hooks/1000000", "test_url": "https://api.github.com/repos/ychongsaytc/example/hooks/1000000/test", "id": 1000000, "name": "web", "active": true, "events": ["push"], "config": { "url": "https://example.com/payload", "content_type": "form", "secret": null }, "last_response": { "code": null, "status": "unused", "message": null }, "updated_at": "2014-09-14T03:02:55Z", "created_at": "2014-09-14T03:02:55Z" } ' in /home/ubuntu/public_html/live/vendor/yiisoft/yii2-authclient/BaseOAuth.php:206 ``` I think a successful API call is not always exactly return **200** status, like **Create a hook** API of Github: https://developer.github.com/v3/repos/hooks/ It will return `201 Created` if hook was successfully created. In my opinion, is status code starts with **20** in normal scenario? close #5011
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
apidoc | Loading commit data... | |
authclient | Loading commit data... | |
bootstrap | Loading commit data... | |
codeception | Loading commit data... | |
composer | Loading commit data... | |
debug | Loading commit data... | |
elasticsearch | Loading commit data... | |
faker | Loading commit data... | |
gii | Loading commit data... | |
imagine | Loading commit data... | |
jui | Loading commit data... | |
mongodb | Loading commit data... | |
redis | Loading commit data... | |
smarty | Loading commit data... | |
sphinx | Loading commit data... | |
swiftmailer | Loading commit data... | |
twig | Loading commit data... | |
README.md | Loading commit data... |