You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-17Lines changed: 3 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -129,27 +129,13 @@ This will continue to work, but has been replaced by `Pusher.trigger` which supp
129
129
130
130
This gem provides methods for accessing information from the [Pusher REST API](https://pusher.com/docs/rest_api). The documentation also shows an example of the responses from each of the API endpionts.
131
131
132
-
The following methods are provided by the gem. If you wish to query an API endpoint that doesn't have a specific method read on to learn how to make generic request to the REST API.
132
+
The following methods are provided by the gem.
133
133
134
134
-`Pusher.channel_info('channel_name')` returns information about that channel.
135
135
136
-
-`Pusher.channels` returns information about all the channels in your Pusher application.
137
-
138
-
### Generic requests to the Pusher REST API
139
-
140
-
Aside from triggering events, the REST API also supports a number of operations for querying the state of the system. A reference of the available methods is available at <http://pusher.com/docs/rest_api>.
136
+
-`Pusher.channel_users('channel_name')` returns a list of all the users subscribed to the channel.
141
137
142
-
All requests must be signed by using your secret key, which is handled automatically using these methods:
143
-
144
-
```ruby
145
-
# using the Pusher class
146
-
Pusher.get('url_without_app_id', params)
147
-
148
-
# using a client
149
-
pusher_client.post('url_without_app_id', params)
150
-
```
151
-
152
-
Note that you don't need to specify your app_id in the URL, as this is inferred from your credentials.
138
+
-`Pusher.channels` returns information about all the channels in your Pusher application.
0 commit comments