Generic HTTP API Affiliate Program Example

  1. --- HTTP Request trace ---

  2. GET /json?action=affiliate_register_user&username=demouser&password=password&[email protected]&phone_number=0799999998&user_ip_address=61.88.1.255&dialling_code=27 HTTP/1.1

  3. Host: smsapi.totalsend.com

  4. Accept: */*

  5. Connection: keep-alive

  6.  

  7. HTTP/1.1 200 OK

  8. Date: Wed, 09 Mar 2011 18:35:56 GMT

  9. Server: Apache

  10. Content-Length: 85

  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":{"user_id":"1","username":"test","message":"User created successfully."}}