Skip to content

Commit

Permalink
adding 2.1.3 info
Browse files Browse the repository at this point in the history
  • Loading branch information
leggetter committed Dec 22, 2012
1 parent e948e15 commit 37d67cc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,11 @@
# Changelog

## 2.1.3 (2012-12-22)

[NEW] `$pusher->trigger` can now take an `array` of channel names as a first parameter to allow the same event to be published on multiple channels.
[NEW] `$pusher->get` generic function can be used to make `GET` calls to the REST API
[NEW] `$pusher->set_logger` to allow internal logging to be exposed and logged in your own logs.

## 2.1.2 (2012-11-18)

[CHANGED] Debug response from `$pusher->trigger` call is now an associative array in the form `array( 'body' => '{String} body text of response', 'status' => '{Number} http status of the response' )`
Expand Down
19 changes: 5 additions & 14 deletions README.md
@@ -1,17 +1,8 @@
# Pusher PHP Library

This is a PHP library to the Pusher API (http://pusher.com).
This is a PHP library for interacting with the Pusher REST API.

## Basic Usage Example

require('Pusher.php');
$pusher = new Pusher( $key, $secret, $app_id );

$pusher->trigger( 'my-channel', 'my-event', array( 'message' => 'hello world' ) );

## Configuration

After registering at <http://pusher.com> configure your app with the security credentials.
Registering at <http://pusher.com> and use the application credentails within your app as shown below.

## Pusher constructor

Expand Down Expand Up @@ -155,7 +146,7 @@ This can also be achieved using the generic `pusher->get` function:

### Get a filtered list of application channels

get_channels( array( 'filter_by_prefix' => 'some_filter' )
get_channels( array( 'filter_by_prefix' => 'some_filter' ) )

It's also possible to get a list of channels based on their name prefix. To do this you need to supply an $options parameter to the call. In the following example the call will return a list of all channels with a 'presence-' prefix. This is idea for fetching a list of all presence channels.

Expand All @@ -164,11 +155,11 @@ It's also possible to get a list of channels based on their name prefix. To do t

This can also be achieved using the generic `pusher->get` function:

pusher->get( '/channels', 'filter_by_prefix' => 'presence-') );
pusher->get( '/channels', array( 'filter_by_prefix' => 'presence-' ) );

## Generic get function

pusher-get( $path, $params )
pusher->get( $path, $params )

Used to make `GET` queries against the Pusher REST API. Handles authentication.

Expand Down

0 comments on commit 37d67cc

Please sign in to comment.