Last active
November 9, 2015 12:27
-
-
Save nippe/bd6d246c11d775075b64 to your computer and use it in GitHub Desktop.
Formdata using request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var reqeustOptions = { | |
uri: urljoin(apiBaseUrl, apiBasePath, 'SMS'), | |
method: 'POST', | |
auth: { | |
user: 'username', | |
pass: 'pwd' | |
}, | |
form: { | |
from: fromNubmer, | |
to: toNumber, | |
message: message | |
} | |
}; | |
request(reqeustOptions); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var reqeustOptions = { | |
uri: urljoin(apiBaseUrl, apiBasePath, 'SMS'), | |
method: 'POST', | |
auth: { | |
user: 'username', | |
pass: 'pwd' | |
}, | |
formData: { | |
from: fromNubmer, | |
to: toNumber, | |
message: message | |
} | |
}; | |
request(reqeustOptions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment