Sign in

Similar Content

Hi everyone its been loooong since I posted here
I have been trying to convert this curl executable parameters into autoit using the winhttp com object;
curl -F data_file=@my_audio_file.mp3 -F model=en-US "https://api.speechmatics.com/v1.0/user/41049/jobs/?auth_token=MmQ5MTk4jdsgjhgghstOGU5YS00OWFhLWghdgjshgdhbshj017###"
any ideas guys

Hi All
i am currently trying to add a function to my project that can send SMS, i have gone with Twilio for the sms service that use a REST API.
I have never worked with an API before, and could use some help.
I can get my function working with using cURL.exe and copy past command from the website with the following code. And thats great unfortunately i am have issue with character like æøå when sending a SMS appears like a box or ?. this does not happen if i do it from the website so it looks like a Unicode issue in curl.exe.
I have done some searching on the forum and understand that i should be able to implement this curl command with the WinHTTP UDF from @trancexx so i don't need a third part exe and it might fix my charater issue.
Unfortunately i really don't understand how i am to change curl commands to the WinHTTP and i was hoping some good maybe give me an example i could learn from.
Thanks in advanced
i have removed the AuthToken number from the script.
_SendSMS("00000000","SomeOne","SMS body info")
Func _SendSMS($SendTo,$SendFrom,$Msgtxt)
$AccountSID = "ACbb765b3180d5938229eff8b8f63ed1bc"
$AuthToken = "Auth Token number"
$Data = '"https://api.twilio.com/2010-04-01/Accounts/'&$AccountSID&'/Messages.json"'& _
'-X POST \ --data-urlencode "To=+45'&$SendTo&'" \ --data-urlencode "From='&$SendFrom&'" \ --data-urlencode "Body='&$Msgtxt&'" \ -u '&$AccountSID&':'&$AuthToken&''
ShellExecute(@ScriptDir&"\curl.exe","-k "&$Data)
;~ curl 'https://api.twilio.com/2010-04-01/Accounts/ACbb765b3180d5938229eff8b8f63ed1bc/Messages.json' -X POST \
;~ --data-urlencode 'To=+4500000000' \
;~ --data-urlencode 'From=Reception' \
;~ --data-urlencode 'Body=Test Body' \
;~ -u ACbb765b3180d5938229eff8b8f63ed1bc:[AuthToken]
EndFunc

Hello friends, i have a working curl command that show informations about my account on binance.com, but_it dont work with autoit code without curl.exe.
I want to do it without curl, because the whole process much Slower_ with StdoutRead (I want get the response in variable.)
My Curl command in Autoit:
This 2 are works, but_ i would like to do it without curl.exe
$apikey="XYZ"
sCommand = @ScriptDir & '\curl.exe -k -H "X-MBX-APIKEY: ' & $apikey & '" -X GET "https://api.binance.com/api/v3/account?' & $request
the same in .bat file
curl.exe -k -H "X-MBX-APIKEY: XYZ" -X GET "https://api.binance.com/api/v3/account?timestamp=1514917812000&signature=85bdee77e53cd521e1d5229fbfb459d53799c42b3fa4596d73f1520fad5f965a"
(I use curl with -k option which allows curl to make insecure connections, because there is problem with the sites certificate, (cURL error 60))

I tried many variations, this is the latest... I cant get the same response.
curl $error message (I changed ): {"code":-2015,"msg":"Invalid API-key, IP, or permissions for action."}
autoit version $error message (Response code:400): Mandatory parameter 'timestamp' was not sent, was empty/null, or malformed.

Hello,
I have been struggling with this for nearly 20 hours, and I just cannot seem to figure out the formatting for the header request.
To test this, you will need to use this api key I set up for your testing purposes. (note, I sent tracexx a direct message about this as I didn't realize I could limit API restrictions until just now, so I am now hoping on of you may have the answer on hand)
I need to be able to GET balance and POST orders.
Right now, I can't get past the 401/403 errors on my own.
I believe the Content is formatted for JSON, but using the JSON format didn't work for me ( although that may be because I'm an idiot and formatted something wrong).
I want to get:
GET balance page
POST delete order page
Here is a temporary API key + Secret API key with only the "View Balance Page" and "Delete Order" functions enabled:
Access-key: tq6GeUrEvfxyF-LG
Secret Access-Key: cZlz75K1wb8-Ed67pRaXvUWTPW6RTH9q

Here is the site's API guide (I followed this closely and doubt the error is there): https://coincheck.com/documents/exchange/api#libraries