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

Add specific usage-focussed functions #69

Closed
hamchapman opened this issue Mar 4, 2015 · 3 comments
Closed

Add specific usage-focussed functions #69

hamchapman opened this issue Mar 4, 2015 · 3 comments

Comments

@hamchapman
Copy link
Contributor

The Pusher REST API (https://pusher.com/docs/rest_api) is simple enough that it makes sense to create specific usage-focussed functions for interacting with it.

For example, we could add the following functions:

getOccupiedChannelInfo(info = nil, prefix = nil)

getChannelInfo(channel_name, info = nil)

getPresenceMembers(channel_name)

They would essentially only be implemented as utility functions that form the path for you and populate the params, but that still seems like a good idea.

@zimbatm
Copy link
Contributor

zimbatm commented May 15, 2016

I don't know at the time of reporting but all of these are covered by the client. Or do you mean add the missing usage direclty in the doc ?

pusher.channels({})
pusher.channel_info(channel_name, {})
pusher.channel_users(channel_name, {})

@vivangkumar
Copy link
Contributor

@hamchapman Can I close this?

@hamchapman
Copy link
Contributor Author

Yeah go for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants