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