How to make "username" & "password" POST to a REST/HTTP API
Posted: Sun Aug 07, 2016 1:25 am
Is there anyone with an idea on how I can accomplish this api call, using HTTP, in LiveCode;
Am trying to wrap some "CURL" functionalities in "HTTP" to allow it being called on a mobile device, but where it fails for me is when I need to authenticate the user.
I have tried but this does not work, so I am looking for the equivalent commands to doing the earlier code example from above in LiveCode.
Any help is greatly appreciated.
Thanks,
Stephen
Code: Select all
curl -u "{username}":"{password}" "https://gateway.missioncontrol.net/conversation/api/v1/{method}"
I have tried
Code: Select all
"POST tUsernameAndPassword to https://gateway.missioncontrol.net/conversation/api/v1/feedback"
Any help is greatly appreciated.
Thanks,
Stephen