Generic HTTP Address book usage examples

  1. --- HTTP Request trace for address_book_groups_get_list --- 
  2. GET /json?action=address_book_groups_get_list&username=demouser&password=demouser HTTP/1.1
  3. Host: api.panaceamobile.com
  4. Accept: */*
  5. Connection: keep-alive
  6.  
  7. HTTP/1.1 200 OK
  8. Date: Tue, 18 Jan 2011 12:50:51 GMT
  9. Server: Apache
  10. Content-Length: 70
  11. Keep-Alive: timeout=15, max=100
  12. Connection: Keep-Alive
  13. Content-Type: text/html; charset=UTF-8
  14.  
  15. {"status":0,"message":"OK","details":[{"id":"1","name":"My Friends"}]}
  16.  
  17. --- HTTP Request trace for address_book_group_add --- 
  18. GET /json?action=address_book_group_add&username=demouser&password=demouser&name=Api+demo+group HTTP/1.1
  19. Host: api.panaceamobile.com
  20. Accept: */*
  21. Connection: keep-alive
  22.  
  23. HTTP/1.1 200 OK
  24. Date: Tue, 18 Jan 2011 12:50:52 GMT
  25. Server: Apache
  26. Content-Length: 41
  27. Keep-Alive: timeout=15, max=100
  28. Connection: Keep-Alive
  29. Content-Type: text/html; charset=UTF-8
  30.  
  31. {"status":0,"message":"OK","details":"7"}
  32.  
  33. --- HTTP Request trace for address_book_contact_add --- 
  34. GET /json?action=address_book_contact_add&username=demouser&password=demouser&group_id=7&phone_number=441234567 HTTP/1.1
  35. Host: api.panaceamobile.com
  36. Accept: */*
  37. Connection: keep-alive
  38.  
  39. HTTP/1.1 200 OK
  40. Date: Tue, 18 Jan 2011 12:50:52 GMT
  41. Server: Apache
  42. Content-Length: 42
  43. Keep-Alive: timeout=15, max=100
  44. Connection: Keep-Alive
  45. Content-Type: text/html; charset=UTF-8
  46.  
  47. {"status":0,"message":"OK","details":"16"}
  48.  
  49. --- HTTP Request trace for address_book_contact_add --- 
  50. GET /json?action=address_book_contact_add&username=demouser&password=demouser&group_id=7&phone_number=441234568&first_name=Donald HTTP/1.1
  51. Host: api.panaceamobile.com
  52. Accept: */*
  53. Connection: keep-alive
  54.  
  55. HTTP/1.1 200 OK
  56. Date: Tue, 18 Jan 2011 12:50:52 GMT
  57. Server: Apache
  58. Content-Length: 42
  59. Keep-Alive: timeout=15, max=100
  60. Connection: Keep-Alive
  61. Content-Type: text/html; charset=UTF-8
  62.  
  63. {"status":0,"message":"OK","details":"17"}
  64.  
  65. --- HTTP Request trace for address_book_contact_update --- 
  66. GET /json?action=address_book_contact_update&username=demouser&password=demouser&contact_id=17&last_name=Jackson HTTP/1.1
  67. Host: api.panaceamobile.com
  68. Accept: */*
  69. Connection: keep-alive
  70.  
  71. HTTP/1.1 200 OK
  72. Date: Tue, 18 Jan 2011 12:50:53 GMT
  73. Server: Apache
  74. Content-Length: 27
  75. Keep-Alive: timeout=15, max=100
  76. Connection: Keep-Alive
  77. Content-Type: text/html; charset=UTF-8
  78.  
  79. {"status":0,"message":"OK"}
  80.  
  81. --- HTTP Request trace for address_book_group_delete --- 
  82. GET /json?action=address_book_group_delete&username=demouser&password=demouser&group_id=7 HTTP/1.1
  83. Host: api.panaceamobile.com
  84. Accept: */*
  85. Connection: keep-alive
  86.  
  87. HTTP/1.1 200 OK
  88. Date: Tue, 18 Jan 2011 12:50:53 GMT
  89. Server: Apache
  90. Content-Length: 27
  91. Keep-Alive: timeout=15, max=100
  92. Connection: Keep-Alive
  93. Content-Type: text/html; charset=UTF-8
  94.  
  95. {"status":0,"message":"OK"}