Skip to content
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

Merged
merged 16 commits into from
May 6, 2015
Merged

Complete functionality #9

merged 16 commits into from
May 6, 2015

Conversation

bladeSk
Copy link
Contributor

@bladeSk bladeSk commented Apr 29, 2015

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).

bladeSk added 6 commits April 28, 2015 14:12
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
@bladeSk
Copy link
Contributor Author

bladeSk commented Apr 29, 2015

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 );
Copy link
Member

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

@mattheworiordan
Copy link
Member

Awesome PR @bladeSk, 🚀 👍

@@ -81,10 +81,17 @@ public function getFirst() {
}

/**
* @return boolean Whether there is a next page
Copy link
Contributor

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

@kouno
Copy link
Contributor

kouno commented Apr 29, 2015

Yep looks good to me too. 👍

bladeSk added 10 commits April 29, 2015 13:27
…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()
kouno added a commit that referenced this pull request May 6, 2015
@kouno kouno merged commit 2dc271e into ably:master May 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants