Guest User

Untitled

a guest
Mar 1st, 2017
35
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Curl
  2.  
  3. curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{\"from\":{\"phoneNumber\":\"+14136790083\"},\"to\":[{\"phoneNumber\":\"+17737175653\"}],\"text\":\"test sms\"}" "https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/sms"
  4. Request URL
  5.  
  6. https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/sms
  7. Response Body
  8.  
  9. {
  10. "errorCode": "TokenInvalid",
  11. "message": "Authorization header is not specified",
  12. "errors": [
  13. {
  14. "errorCode": "OAU-123",
  15. "message": "Authorization header is not specified"
  16. }
  17. ]
  18. }
  19. Response Code
  20.  
  21. 401
  22. Response Headers
  23.  
  24. {
  25. "date": "Wed, 01 Mar 2017 12:30:12 GMT",
  26. "routingkey": "SJC11P01PAS02",
  27. "content-language": "en-US",
  28. "content-type": "application/json;charset=UTF-8",
  29. "content-length": "198"
  30. }
RAW Paste Data