Skip to content

Commit

Permalink
add disablePresenceEvents function
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Burke committed Feb 1, 2012
1 parent bf54f3b commit ff035b4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
3 changes: 2 additions & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ In alphabetical order:

Adam Balai (minddog)
Asher Snyder (noloh)
John Britton (johndbritton)
John Britton (johndbritton)
Kyle Conroy (derferman)
Kevin Burke (kevinburke)
8 changes: 8 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
twilio-php Changelog
====================

Version 3.2.4
-------------

Add disablePresenceEvents method to the TwilioCapability object to support
new Twilio Client feature.
19 changes: 18 additions & 1 deletion docs/usage/token-generation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ Capability tokens are used by `Twilio Client <http://www.twilio.com/api/client>`
Allow Incoming Connections
==============================

Before a device running `Twilio Client <http://www.twilio.com/api/client>`_ can recieve incoming connections, the instance must first register a name (such as "Alice" or "Bob"). The :php:meth:`allowCclientIncoming` method adds the client name to the capability token.
Before a device running `Twilio Client <http://www.twilio.com/api/client>`_ can
recieve incoming connections, the instance must first register a name (such as
"Alice" or "Bob"). The :php:meth:`allowClientIncoming` method adds the client
name to the capability token.

.. code-block:: php
Expand All @@ -46,10 +49,24 @@ To make an outgoing connection from a `Twilio Client <http://www.twilio.com/api/
$params = array("Foo" => "Bar"); // Parameters to be passed
$capability->allowClientOutgoing($applicationSid, $params);
Disable Presence Events
=======================

Presence events can use lots of bandwidth if there are many clients
subscribed to the network. To disable presence events, call
:meth:`disablePresenceEvents` on your capability object.

.. code-block:: php
$capability->disablePresenceEvents();
Generate a Token
==================

Once you have assigned all of the capabilities you would like the Client token
to have, generate a capability token that you can use in your frontend Client
app.

.. code-block:: php
$token = $capability->generateToken();
Expand Down

0 comments on commit ff035b4

Please sign in to comment.