Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 19th, 2012  |  syntax: None  |  size: 0.44 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. class Fabric
  2.   include HTTParty
  3.   base_uri 'https://api.sandbox.x.com/fabric'
  4. end
  5.  
  6. response = Fabric.post("/message/ping", \
  7.   {:body => stringwriter.string, :headers => {'Content-Type' => 'avro/binary',  \
  8.   'Authorization' => "Bearer jS2t0mxpNWtXsoMQtcoyw2NtyDZDz+aHjuIb+z1PtEiqmPXkzEoWJH4NnBuL5MHWXI1WHyWc", \
  9.   'X-XC-DESTINATION-ID' => '24+4FfGxHYE+KsK6IVFMU0F7wLUYc+hy3mIGC92zF8eC7raTQ3pa3l6L3IE/PuaV92gz4eZc',\
  10.   'X-XC-SCHEMA-VERSION' => "1.0.0"}})