Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Update examples to include address types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudi Giesler committed Jan 21, 2015
1 parent b1381d0 commit 3e32b65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/http_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ User messages are JSON objects of the following format:
"in_reply_to": null,
"session_event": null,
"to_addr": "1234",
"to_addr_type": "msisdn"
"from_addr": "27761234567",
"from_addr_type": "msisdn"
"content": "This is an incoming SMS!",
"transport_name": "smpp_transport",
"transport_type": "sms",
Expand Down Expand Up @@ -83,6 +85,7 @@ Sending Messages
--user '<account-key>:<access-token>' \
--data '{"in_reply_to": "59b37288d8d94e42ab804158bdbf53e5", \
"to_addr": "27761234567", \
"to_addr_type": "msisdn", \
"content": "This is an outgoing SMS!"}' \
http://go.vumi.org/api/v1/go/http_api_nostream/<conversation-key>/messages.json \
-vvv
Expand Down

0 comments on commit 3e32b65

Please sign in to comment.