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: smsapi.totalsend.com

  4. Accept: */*

  5. Connection: keep-alive

  6. HTTP/1.1 200 OK

  7. Date: Tue, 18 Jan 2011 12:50:51 GMT

  8. Server: Apache

  9. Content-Length: 70

  10. Keep-Alive: timeout=15, max=100

  11. Connection: Keep-Alive

  12. Content-Type: text/html; charset=UTF-8

  13. {"status":0,"message":"OK","details":[{"id":"1","name":"My Friends"}]}

  14. --- HTTP Request trace for address_book_group_add ---

  15. GET /json?action=address_book_group_add&username=demouser&password=demouser&name=Api+demo+group HTTP/1.1

  16. Host: smsapi.totalsend.com

  17. Accept: */*

  18. Connection: keep-alive

  19. HTTP/1.1 200 OK

  20. Date: Tue, 18 Jan 2011 12:50:52 GMT

  21. Server: Apache

  22. Content-Length: 41

  23. Keep-Alive: timeout=15, max=100

  24. Connection: Keep-Alive

  25. Content-Type: text/html; charset=UTF-8

  26. {"status":0,"message":"OK","details":"7"}

  27. --- HTTP Request trace for address_book_contact_add ---

  28. GET /json?action=address_book_contact_add&username=demouser&password=demouser&group_id=7&phone_number=441234567 HTTP/1.1

  29. Host: smsapi.totalsend.com

  30. Accept: */*

  31. Connection: keep-alive

  32. HTTP/1.1 200 OK

  33. Date: Tue, 18 Jan 2011 12:50:52 GMT

  34. Server: Apache

  35. Content-Length: 42

  36. Keep-Alive: timeout=15, max=100

  37. Connection: Keep-Alive

  38. Content-Type: text/html; charset=UTF-8

  39. {"status":0,"message":"OK","details":"16"}

  40. --- HTTP Request trace for address_book_contact_add ---

  41. GET /json?action=address_book_contact_add&username=demouser&password=demouser&group_id=7&phone_number=441234568&first_name=Donald HTTP/1.1

  42. Host: smsapi.totalsend.com

  43. Accept: */*

  44. Connection: keep-alive

  45. HTTP/1.1 200 OK

  46. Date: Tue, 18 Jan 2011 12:50:52 GMT

  47. Server: Apache

  48. Content-Length: 42

  49. Keep-Alive: timeout=15, max=100

  50. Connection: Keep-Alive

  51. Content-Type: text/html; charset=UTF-8

  52. {"status":0,"message":"OK","details":"17"}

  53. --- HTTP Request trace for address_book_contact_update ---

  54. GET /json?action=address_book_contact_update&username=demouser&password=demouser&contact_id=17&last_name=Jackson HTTP/1.1

  55. Host: smsapi.totalsend.com

  56. Accept: */*

  57. Connection: keep-alive

  58. HTTP/1.1 200 OK

  59. Date: Tue, 18 Jan 2011 12:50:53 GMT

  60. Server: Apache

  61. Content-Length: 27

  62. Keep-Alive: timeout=15, max=100

  63. Connection: Keep-Alive

  64. Content-Type: text/html; charset=UTF-8

  65. {"status":0,"message":"OK"}

  66. --- HTTP Request trace for address_book_group_delete ---

  67. GET /json?action=address_book_group_delete&username=demouser&password=demouser&group_id=7 HTTP/1.1

  68. Host: smsapi.totalsend.com

  69. Accept: */*

  70. Connection: keep-alive

  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. {"status":0,"message":"OK"}