This file contains 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
<qs account="bolide_account"> | |
<q id="client_1"> | |
<msg_count>0</msg_count> | |
<token>30b397d0-11c5-012d-0143-404077aa86f5</token> | |
<expire_on>2010-03-14T18:32:37+00:00</expire_on> | |
</q> | |
<q id="client_2"> | |
<msg_count>3</msg_count> | |
<token>4b321ff0-11c5-012d-0143-404077aa86f5</token> | |
<expire_on>2010-03-14T19:32:37+00:00</expire_on> |
This file contains 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
PUT http://live.bolideapp.com/q/<q_name>.xml |
This file contains 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
GET http://live.bolideapp.com/q.xml | |
GET http://live.bolideapp.com/q/<q_name>.xml |
This file contains 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
<msgs> | |
<!-- Select all Queues using regex --> | |
<msg select=".*"> | |
<body> | |
<![CDATA[Data to send]]> | |
</body> | |
</msg> | |
<!-- Specify queues --> |
This file contains 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
POST http://live.bolideapp.com/msg.xml |
This file contains 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
GET http://live.bolideapp.com/<account>/<queue_name>/<valid_token> |
This file contains 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
<errors> | |
<error> Can't be saved </error> | |
</errors> | |
<warnings> | |
<warning> Cannot send msg, queue does not exist</warning> | |
</warnings> |
This file contains 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
require "bolide" | |
def load_bolide | |
# For use with rails: a client/q per session is created | |
@bolide = session[:bolide] | |
@q = session[:q] | |
if @bolide.nil? | |
# create a new session with Bolide | |
@bolide = Bolide::Account.new("bolide", "xxxx61d0-095c-012d-0076-404077aa86f5") |
This file contains 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
<!-- It uses prototype & the bolide.js found in the ruby plugin or at live.bolideapp.com --> | |
<script src="/javascripts/prototype.js?1267672430" type="text/javascript"></script> | |
<script src="http://live.bolideapp.com/js/bolide.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
// With session ID and Token | |
bolide = new Bolide.Client("bolide", "b79c55c143df93241981c49aa97329f6", "cdcdaeb0-11c6-012d-0145-404077aa86f5", { | |
onSuccess: function(response){ | |
print("Success", response); | |
}, |
This file contains 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
# Headers should be: | |
# | |
# X-Bol-Date: <Date of the request, format doesn't matter> | |
# X-Bol-Authentication: <MD5 Hash> | |
# Content-Type: application/xml | |
# | |
def headers | |
now = DateTime.now.to_s | |
{'X-Bol-Date'=>now, 'X-Bol-Authentication'=>auth_key(now), 'Content-Type'=>'application/xml'} | |
end |
OlderNewer