Guest User

Untitled

a guest
Jan 12th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. request.post({
  2. form: { method: 'send',
  3. username: 'max13',
  4. password: '****',
  5. from: '0000',
  6. to: admin1,
  7. message: 'user '+ user_name +' has sent a job'
  8. },
  9. url: 'http://www.thsms.com/api/rest',
  10.  
  11. form: {method: 'send',
  12. username: 'max13',
  13. password: '****',
  14. from: '0000',
  15. to: admin2,
  16. message: 'user '+ user_name +' has sent a job'},
  17.  
  18. url: 'http://www.thsms.com/api/rest',
  19.  
  20. .then(function(){
  21. return //your sms api code for admin1
  22. })
  23. .then(function(){
  24. return //your sms api code for admin2
  25. })
  26. .fail(function(){
  27. log error if any of above then block get failed
  28. })
Add Comment
Please, Sign In to add comment