Advertisement
minafaw3

new api

Jan 24th, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. 1- Register :
  2. /api/clients/newclient
  3. {"deviceId":"abc123","email":"[email protected]","phone":"01005545"}
  4. 2- Validate :
  5. /api/clients/validate
  6. {"phone":"01005545","code":"313315"}
  7.  
  8.  
  9.  
  10. As you request in our last call all methods by json objects
  11.  
  12. 1-Register new client:
  13. url: api/clients/newclient
  14. data: {"deviceId":"abc123","email":"[email protected]","phone":"01005545"}
  15.  
  16. 2-Validate client :
  17. url: /api/clients/validate
  18. data: {"deviceId":"abc123","code":"369694"}
  19.  
  20. 3-Post email list to clients
  21. url : /api/clients/addcontacts
  22. data: {"id":"2","Emails":["[email protected]","[email protected]"]}
  23.  
  24. 4-Get client ID
  25. url: /api/clients/getclientid
  26. data: {"deviceId":"abc123"}
  27.  
  28. 5- get client data
  29. url : : /api/clients/getclientdata
  30. data : {"clientId":"6"}
  31.  
  32.  
  33. 6- /clients/getdirectory
  34. data : {"id":"6","PhoneNumber":["01005545","01282370960"]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement