How to Send a Message to OpenStack Zaqar with Python

from zaqarclient.queues.v1 import client

client = client.Client('http://host:8888', conf={'auth_opts':{'options':{'client_uuid':..., 'os_auth_token':..., 'os_auth_url':'http://host:5000/v3.0/', 'os_project_id':...}}}, version=1.1)

queue = client.queue('SampleQueue')

queue.post([{'body':'Simples Assim'}])

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s