Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ed65259d7c
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (40 sloc) 1.788 kb
{% extends "../templates/base.html" %}
{% block 'content' %}
<h1 id="fake_twilio_api">Fake Twilio API Examples</h1>
<div id="content">
<h2>SMS Messages</h2>
<li>Retrieve a list of messages (json response)
<p class="wrap">
curl --user {{data.Account.Sid}}:{{data.Account.AuthToken}} {{data.host}}/2010-04-01/Accounts/{{data.Account.Sid}}/SMS/Messages.json
</p>
</li>
<h2>Incoming Phone Numbers</h2>
<li>Requisition an incoming number with Area Code(301) and assign a Friendly Name
<p class="wrap">
curl -d "AreaCode=301&amp;FriendlyName=Phone Number Example" --user {{data.Account.Sid}}:{{data.Account.AuthToken}} {{data.host}}/2010-04-01/Accounts/{{data.Account.Sid}}/IncomingPhoneNumbers.json
</p>
</li>
<li>Get an incoming phone numbers information
<p class="wrap">
curl --user {{data.Account.Sid}}:{{data.Account.AuthToken}} {{data.host}}/2010-04-01/Accounts/{{data.Account.Sid}}/IncomingPhoneNumbers/<b>*SID*</b>
</p>
</li>
<li>Update an incoming phone number's VoiceUrl and FriendlyName
<p class="wrap">
curl -d "FriendlyName=TVSHOW&amp;VoiceUrl=http://www.cnn.com" --user {{data.Account.Sid}}:{{data.Account.AuthToken}} {{data.host}}/2010-04-01/Accounts/{{data.Account.Sid}}/IncomingPhoneNumbers/<b>*SID*</b>
</p>
</li>
<li>Delete an incoming phone number
<p class="wrap">
curl -X DELETE --user {{data.Account.Sid}}:{{data.Account.AuthToken}} {{data.host}}/2010-04-01/Accounts/{{data.Account.Sid}}/IncomingPhoneNumbers/<b>*SID*</b>
</p>
</li>
<h2>Accounts</h2>
<li>
Update an accounts information (friendly name)
<p class="wrap">
curl -d "FriendlyName=NewFriendlyName" --user {{data.Account.Sid}}:{{data.Account.AuthToken}} {{data.host}}/2010-04-01/Accounts/{{data.Account.Sid}}
</p>
</li>
</div>
{% endblock %}
Jump to Line
Something went wrong with that request. Please try again.