Created
May 22, 2015 18:05
-
-
Save jayzeng/4de42d0ba5e580b975b5 to your computer and use it in GitHub Desktop.
boto sqs hello world
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto | |
import json | |
from boto.sqs.message import Message | |
sqs = boto.connect_sqs() | |
queue = sqs.get_queue('queue') | |
mess = { | |
"test":"hello world" | |
} | |
m = Message() | |
m.set_body(json.dumps(mess)) | |
queue.write(m) |
Author
jayzeng
commented
May 22, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment