Advertisement
danebalia

AfMotionPostWithToken

Apr 22nd, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.24 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement