Introduzione SMS
- Home
- Introduzione SMS
Introduzione all’API SMS Partner
I messaggi SMS vengono inviati dalla piattaforma PartnerSMS. Dal sito, avete accesso immediato alla nostra API gratuita: vi permette di integrare facilmente i nostri servizi SMS nel vostro sito web, software o applicazione CRM in PHP, ASP, .NET, Java o qualsiasi altro linguaggio.
Impostazioni
Ogni richiesta API supporta almeno i seguenti parametri :
apiKey | Chiave API per il tuo account. Lo ottieni nel tuo compte SMS Partner |
---|---|
Parametri opzionali | |
_format | Formato di risposta. È possibile scegliere tra json e xml. Per impostazione predefinita, il formato di risposta è json. Exemple : https://api.smspartner.fr/v1/me?apiKey=YOUR_API_KEY&_format=json |
_format | Content-Type |
---|---|
json | application/json |
xml | application/xml |
Ad esempio, è possibile formattare il messaggio SMS in formato json o xml, ma è necessario riempire l’intestazione Content-Type di conseguenza:
1 2 3 4 5 6 7 8 |
POST /v1/send HTTP/1.1 Host: api.smspartner.fr Content-Type: application/json { "apiKey": "API_KEY", "phoneNumbers": "+33600000000", "message": "Hello world" } |
1 2 3 4 5 6 7 8 |
POST /v1/send HTTP/1.1 Host: api.smspartner.fr Content-Type: application/xml API_KEY +33600000000 Hello world |
Richieste
Tutte le richieste API devono essere inviate a http://api.smspartner.fr/v1/commande
, commande
è la chiamata API che si vuole eseguire, con i parametri inclusi nel body POST o URL (GET).
Scaricate un esempio in PHP
Non esitate a consultare i nostri SDK disponibili su questo sito.