[manual] send_message: Rename recipient/stream fields to 'to'.

This commit changes APIs and requires and update of all zephyr
mirroring bots to deploy properly.

(imported from commit 2672d2d07269379f7a865644aaeb6796d54183e1)
This commit is contained in:
Tim Abbott 2012-11-14 17:21:46 -05:00
parent fb59f15099
commit 6727e9dbd9
7 changed files with 12 additions and 12 deletions

View file

@ -5,7 +5,7 @@ curl https://humbughq.com/api/v1/send_message \
-d "api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-d "email=tabbott@humbughq.com" \
-d "type=private" -d "content=test" \
-d "recipient=tabbott@humbughq.com"
-d "to=tabbott@humbughq.com"
curl https://humbughq.com/api/v1/get_messages \
-d "api-key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \

View file

@ -40,6 +40,6 @@ client = api.common.HumbugAPI(email=options.sender,
message_data = {
"type": "private",
"content": "test",
"recipient": args[0]
"to": args[0],
}
print client.send_message(message_data)