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: api.panaceamobile.com
  4. Accept: */*
  5. Connection: keep-alive
  6.  
  7. HTTP/1.1 200 OK
  8. Date: Fri, 25 Feb 2011 16:59:58 GMT
  9. Server: Apache
  10. Content-Length: 231
  11. Keep-Alive: timeout=15, max=100
  12. Connection: Keep-Alive
  13. Content-Type: text/html; charset=UTF-8
  14.  
  15. {"status":2,"message":"Request key created","details":{"authorize_url":"http:\/\/api.panaceamobile.com\/allow_app\/evz4vqh6oftn-pzabjlapaj_35035mtnehnlxn0ck4eir8wy","request_key":"evz4vqh6oftn-pzabjlapaj_35035mtnehnlxn0ck4eir8wy"}}