Want more features on Pastebin? Sign Up, it's FREE!
Guest

AfMotionPostWithToken

By: danebalia on Apr 22nd, 2014  |  syntax: Ruby  |  size: 0.24 KB  |  views: 60  |  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. # At Start of Application
  2. client = AFMotion::Client.build("https://alpha-api.app.net/") do
  3.   header "Accept", "application/json"
  4.   response_serializer :json
  5. end
  6.  
  7. # When User Object and Token Generated
  8. client.post("register") do |result|
  9.  
  10. end
clone this paste RAW Paste Data