<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>16 Oct 2019 17:44:19 Z</lastBuildDate><pubDate>6 Jul 2019 09:51:38 Z</pubDate><description>Bonjour,&#13;
&#13;
Je cherche une âme charitable qui voudrait bien m'expliquer comment transcrire ce code en Wlanguage &#13;
&#13;
///////////////////////////////////////////////////////////////&#13;
# Access token example&#13;
curl -XPOST 'https://api.smsenvoi.com/API/v1.0/REST/paramsms' -H 'Content-Type: application/json' \&#13;
 -H 'user_key: USER_KEY' -H 'Access_token: ACCESS_TOKEN' -d'&#13;
{&#13;
    "message_type": "MESSAGE_TYPE", &#13;
    "message": "Hello ${name}, welcome to ${nation}", &#13;
    "sender": "MySender", &#13;
    "scheduled_delivery_time": "20161223101010", &#13;
    "order_id": "123456789", &#13;
    "returnCredits": true, &#13;
    "allowInvalidRecipients": false, &#13;
    "returnRemaining": true, &#13;
    "recipients": {&#13;
        "0": {&#13;
            "recipient": "+393471234567", &#13;
            "name": "Mark", &#13;
            "nation": "Germany"&#13;
        }, &#13;
        "1": {&#13;
            "recipient": "+393477654321", &#13;
            "name": "John", &#13;
            "nation": "Alabama"&#13;
        }&#13;
    }&#13;
}&#13;
'&#13;
/////////////////////////////////////////////////////////////////////&#13;
&#13;
J'ai essayé cela, mais j'ai toujours une erreur 400 :&#13;
&#13;
sMonURLHTTP est une chaîne&#13;
sMonSMS est une chaîne&#13;
&#13;
cMaRequête est un httpRequête&#13;
&#13;
sMonURLHTTP = "https://api.smsenvoi.com/API/v1.0/REST/sms"&#13;
&#13;
sMonSMS = [&#13;
{&#13;
"message_type": "PRM", &#13;
"message": "Hello world!", &#13;
"recipient": "+33678284640", &#13;
"sender": "MySender", &#13;
"scheduled_delivery_time": "20161223101010", &#13;
"order_id": "123456789", &#13;
"returnCredits": true&#13;
}&#13;
]&#13;
&#13;
cMaRequête..Contenu = ChaîneVersUTF8(sMonSMS)&#13;
cMaRequête..URL = sMonURLHTTP&#13;
cMaRequête..Méthode = httpPost&#13;
cMaRequête.Entête["Content-Type"] = "application/json"&#13;
cMaRequête.Entête["user_key"] = "18758"&#13;
cMaRequête.Entête["Access_token"] = "993363NEMEDAA2KH49HM"&#13;
&#13;
cMaRéponse est une httpRéponse = HTTPEnvoie(cMaRequête)&#13;
&#13;
SI ErreurDétectée ALORS&#13;
	SI ErreurInfo(errCode) = 401 ALORS&#13;
&#13;
	FIN&#13;
SINON&#13;
	&#13;
	Info(cMaRéponse..Contenu)&#13;
FIN&#13;
&#13;
/////////////////////////////////////////////////////////////////////&#13;
&#13;
Par avance, merci.&#13;
&#13;
Renald</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/231410-contacter-api-smsenvoie-com/read.awp</link><title>Contacter API SMSenvoie.com -</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>fabienne.camilla</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/231410-contacter-api-smsenvoie-com-233751/read.awp</comments><pubDate>16 Oct 2019 17:44:19 Z</pubDate><description>Bonjour &#13;
avez vous réussi car régler votre problème et a ne plus avoir l'erreur 400 ?&#13;
car j'ai le même problème .&#13;
en vous rem…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/231410-contacter-api-smsenvoie-com-233751/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/231410-contacter-api-smsenvoie-com-233751/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/231410-contacter-api-smsenvoie-com/read.awp">Contacter API SMSenvoie.com -</source><title>Re: Contacter API SMSenvoie.com -</title></item><item><author>Romuald</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/231410-contacter-api-smsenvoie-com-231424/read.awp</comments><pubDate>8 Jul 2019 07:29:46 Z</pubDate><description>Bonjour,&#13;
&#13;
Voici :&#13;
&#13;
//Envoi&#13;
bRequêteEnvoi = HTTPRequête("http://www.smsenvoi.com/httpapi/sendsms/", "", "",...&#13;
URLEncode("e…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/231410-contacter-api-smsenvoie-com-231424/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/231410-contacter-api-smsenvoie-com-231424/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/231410-contacter-api-smsenvoie-com/read.awp">Contacter API SMSenvoie.com -</source><title>Re: Contacter API SMSenvoie.com -</title></item></channel></rss>
