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
yii\db\ActiveQuery is used to build sub-queries, its WHERE clause is not correctly generated
yii\db\ActiveQuery is used to build sub-queries, its WHERE clause is not correctly generated
Yii PHP Framework Version 2
Thank you for choosing Yii 2 - a modern PHP framework designed for professional Web development.
Yii 2 is a complete rewrite of its previous version Yii 1.1 which is one of the most popular PHP frameworks. Yii 2 inherits the main spirit behind Yii for being simple, fast and highly extensible. Yii 2 requires PHP 5.4 and embraces the best practices and protocols found in modern Web application development.
Yii 2 is not ready for production use yet. We may make significant changes without prior notices. We expect to make the first stable release of Yii 2 in the middle of 2014.
If you mainly want to learn Yii with no real project development requirement, we highly recommend you start with Yii 2 as it will be our main focus for the next few years.
If you have a real project with tight schedule, you should stick to Yii 1.1 which is the latest stable release of Yii.
DIRECTORY STRUCTURE
apps/ ready-to-use application templates
advanced/ a template suitable for building sophisticated Web applications
basic/ a template suitable for building simple Web applications
benchmark/ an application demonstrating the performance of Yii
build/ internally used build tools
docs/ documentation
extensions/ extensions
framework/ core framework code
tests/ tests of the core framework code
REQUIREMENTS
The minimum requirement by Yii is that your Web server supports PHP 5.4.
DOCUMENTATION
A draft of the Definitive Guide is available.
API docs and a rendering of the definitive guide are currently available under the following urls:
- http://www.yiiframework.com/doc-2.0/ API and Definitive Guide (updated daily)
- http://stuff.cebe.cc/yii2docs/ API and Definitive Guide (updated every 15 minutes)
- http://stuff.cebe.cc/yii2-guide.pdf The PDF version of the Guide
For 1.1 users, you may refer to Upgrading from Yii 1.1 to have a general idea of what has changed in 2.0.
HOW TO PARTICIPATE
Your participation to Yii 2 development is very welcome!
You may participate in the following ways:
- Report issues
- Give us feedback or start a design discussion
- Fix issues, develop features, write/polish documentation
- Before you start, please adopt an existing issue (labelled with "ready for adoption") or start a new one to avoid duplicated efforts.
- Please submit a merge request after you finish development.
In order to make it easier we've prepared special yii2-dev Composer package.







