importrequeststoken='Your token'url_base='https://app.teenvio.com/v4/public/api/rest/v3'my_headers={'Accept':'application/json','X-Token':token,'Content-Type':'application/json'}post_request={"gid":1"text":"hello world","src":"teenvio","name":"api test from curl"}response=requests.post(url_base+"/sms/",json=post_request,headers=my_headers)print(response.json())
constaxios=require('axios');consttoken='Your token';consturl_base='https://app.teenvio.com/v4/public/api/rest/v3';constmy_headers={'Accept':'application/json','X-Token':token};constpost_request={"gid":1"text":"hello world","src":"teenvio","name":"api test from curl"};axios.post(url_base+'/sms/',post_request,{headers:my_headers}).then(resp=>{console.log(resp.data);});