Récupérer les NPAIs d'une campagne

Cette méthode vous permet de récupérer les NPAIs d'une campagne.

GET

/campaign/:id/npai

Paramètres de requête

id
requis
L'id de campagne

Exemples


GET /campaign/18969398/npai HTTP/1.1
Host: api.smsfactor.com
Accept: application/json
Authorization: Bearer your.token
      
    

Format de la réponse


{ 
    "status": 1,
    "message": "OK",
    "npais": [
        {
            "destination": "33612345678",
            "info1": "Ricky",
            "info2": "Gervais",
            "info3": null,
            "info4": null,
            "date": "2020-11-26 09:33:58"
        },
        {
            "destination": "33612345677",
            "info1": "Richard",
            "info2": "Dawkins",
            "info3": null,
            "info4": null,
            "date": "2020-11-26 09:33:58"
        }
    ]
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>1</status>
    <message>OK</message>
    <npais>
        <destination>33612345678</destination>
        <info1>Ricky</info1>
        <info2>Gervais</info2>
        <info3>null</info3>
        <info4>null</info4>
        <date>"2020-11-26 09:33:58"</date>
    </npais>
    <npais>
        <destination>33612345677</destination>
        <info1>Richard</info1>
        <info2>Dawkins</info2>
        <info3>null</info3>
        <info4>null</info4>
        <date>"2020-11-26 09:33:58"</date>
    </npais>
</response>