I have found a pretty cheap sms services but i have problem as it does not provide a xojo code.
The company is there and the relevant code in rubby/php/python etc…
https://gatewayapi.com/
Is anybody can spend some time to write the little code for calling the api in xojo code?
I use xojo cloud and don’t know if it supports running python scripts and how…
I put there the corresponding python code for convenience
[code]# Install deps with: pip install requests_oauthlib
If you are not running python 3:
from future import print_function
from requests_oauthlib import OAuth1Session
key = ‘OCBPsIM96YxMYbtF5NExSEje’
secret = ‘kbeicziA(UM6HLbJIcbfPpdQF3pEHm)Pr%eKVmmN’
gwapi = OAuth1Session(key, client_secret=secret)
req = {
‘sender’: ‘ExampleSMS’,
‘message’: ‘Hello World’,
‘recipients’: [{‘msisdn’: 4512345678}],
}
res = gwapi.post(‘https://gatewayapi.com/rest/mtsms’, json=req)
res.raise_for_status()
print(res.json())[/code]