{
"id": "5e9021f6-02ea-9846-5380-5b3d58a55d04",
"name": "forgotpassword API on POSTMAN",
"requests": [
{
"id": "657318a8-70a5-065d-e9c5-1b7fac76bda7",
"headers": "Content-Type: application/json\n",
"url": " http://ec2-54-244-62-69.us-west-2.compute.amazonaws.com:80/v1/users/auth/password/reset/",
"pathVariables": {},
"preRequestScript": null,
"method": "POST",
"collectionId": "5e9021f6-02ea-9846-5380-5b3d58a55d04",
"data": [],
"dataMode": "raw",
"name": " http://ec2-54-244-62-69.us-west-2.compute.amazonaws.com:80/v1/users/auth/password/reset/",
"description": "",
"descriptionFormat": "html",
"time": 1489131187724,
"version": 2,
"responses": [],
"tests": null,
"currentHelper": "normal",
"helperAttributes": {},
"rawModeData": "{\"email\":\"abc@tudip.com\"}"
}
],
"order": [
"657318a8-70a5-065d-e9c5-1b7fac76bda7"
],
"timestamp": 1489131187724
}
"ankitgaur" wrote:
We are making following API Call in Postman successfully...
"ankitgaur" wrote:
We are confused about What should be the Request in the PostFromString() function. Any Solution with an example will be very helpful.
So, Could you Please provide an Example for this Scenario.
ut = CreateObject("roUrlTransfer")
ut.SetUrl("http://myserver.com/myscript.php")
...
queryString = ut.Escape(stuff) + "&" + ut.Escape(username) + "&" + ut.Escape(password)
ut.AsyncPostFromString(queryString)
...
"belltown" wrote:
The 'request' parameter is the query string, the exact string you'd send after the "?" if you were doing a GET request. The Roku OS internally converts the query string parameters into "body parts". ...
"EnTerr" wrote:"belltown" wrote:
The 'request' parameter is the query string, the exact string you'd send after the "?" if you were doing a GET request. The Roku OS internally converts the query string parameters into "body parts". ...
That's not quite true - in the sense that it's a perfectly valid http having a POST that has both a "?" query string and a body at the same time. We recently looked into that on account of PHP muddying the waters with its method names. On the particular case your advise seems correct though
"ankitgaur" wrote:
Following is the working CURL Command line URL for making API call
curl -X POST --data "email=abc@tudip.com" http://ec2-54-244-62-69.us-west-2.compu ... ord/reset/
Please provide way how to call above curl url in ROKU ?