1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-05 13:16:14 +01:00
phorge-phorge/externals/twilio-php/docs/usage/rest/accounts.rst

25 lines
603 B
ReStructuredText
Raw Normal View History

==================
Accounts
==================
Updating Account Information
==============================
Updating :class:`Account <Services_Twilio_Rest_Account>` information is really easy:
.. code-block:: php
$client = new Services_Twilio('AC123', '123');
$account = $client->account;
$account->update(array('FriendlyName' => 'My Awesome Account'));
Creating a Subaccount
==============================
.. code-block:: php
$client = new Services_Twilio('AC123', '123');
$subaccount = $client->accounts->create(array(
'FriendlyName' => 'My Awesome SubAccount'
));