A generic HTTP request illustrating the use and response of user_get_api_key()

  1. --- HTTP Request trace ---
  2. GET /json?action=user_authorize_application&application_name=My+Application&return_url=http%3A%2F%2Fconsole.panaceamobile.com%2Fexamples%2Fdemos%2Fapi_key_creation%2Fstep2.php HTTP/1.1
  3. Host: smsapi.totalsend.com
  4. Accept: */*
  5. Connection: keep-alive
  6. HTTP/1.1 200 OK
  7. Date: Fri, 25 Feb 2011 16:59:58 GMT
  8. Server: Apache
  9. Content-Length: 231
  10. Keep-Alive: timeout=15, max=100
  11. Connection: Keep-Alive
  12. Content-Type: text/html; charset=UTF-8
  13. {"status":2,"message":"Request key created","details":{"authorize_url":"http:\/\/smsapi.totalsend.com\/allow_app\/evz4vqh6oftn-pzabjlapaj_35035mtnehnlxn0ck4eir8wy","request_key":"evz4vqh6oftn-pzabjlapaj_35035mtnehnlxn0ck4eir8wy"}}