-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete functionality #9
Conversation
Auth exceptions + tests
Fallback hosts are randomized Updated fallback host tests and fixed test not using tls
Updated ChannelHistory test suite to test pagination, sped up slow tests Updated pagination method names to match Java lib Removed useless/unused methods to improve coverage + fixed tests being covered
Here's a coverage report for the current version: http://dev.blade.sk/ably/ |
@@ -63,7 +64,7 @@ public function channel( $name, $options = array() ) { | |||
* @return array Statistics | |||
*/ | |||
public function stats( $params = array() ) { | |||
return $this->get( '/stats', $headers = array(), $params ); | |||
return new PaginatedResource( $this, 'Ably\Models\Stats', $cipher = false, '/stats', $params ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't let this effect this PR, but can you add an issue to change this to PaginatedResult for consistency, see ably/ably-ruby#40
Awesome PR @bladeSk, 🚀 👍 |
@@ -81,10 +81,17 @@ public function getFirst() { | |||
} | |||
|
|||
/** | |||
* @return boolean Whether there is a next page |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whether there is a first page
Yep looks good to me too. 👍 |
…ing composer, added license
…e when making requests)
Updated readme
…lid auth params, environment support in ClientOptions, removed unnecessary request to /time on each authorized request Added Auth tests, AblyRest tests, Stats tests
Added useTokenAuth to AuthOptions Support for authUrl returning token string Fixed wrong params of authorise() Fixed wrong params handling of createTokenRequest()
Bug fixes
All the major features from http://docs.ably.io/client-lib-development-guide/features/#rest should be in place (except for msgPack, which doesn't have any stable PHP library at the moment).