NZN einer Kampagne abrufen

Mit dieser Methode können Sie die NZN einer Kampagne abrufen.

GET

/campaign/:id/npai

Abfrage-Parameter

id
notwendig
ID der Kampagne

Beispiele


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

Ergebnisformat


{ 
    "status": 1,
    "message": "OK",
    "npais": [
        {
            "destination": "41781234567",
            "info1": "Ricky",
            "info2": "Gervais",
            "info3": null,
            "info4": null,
            "date": "2021-09-23 12:46:05"
        },
        {
            "destination": "41781234566",
            "info1": "Richard",
            "info2": "Dawkins",
            "info3": null,
            "info4": null,
            "date": "2021-09-23 12:46:05"
        }
    ]
}
          
        

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <status>1</status>
    <message>OK</message>
    <npais>
        <destination>41781234567</destination>
        <info1>Ricky</info1>
        <info2>Gervais</info2>
        <info3>null</info3>
        <info4>null</info4>
        <date>"2021-09-23 12:46:05"</date>
    </npais>
    <npais>
        <destination>41781234566</destination>
        <info1>Richard</info1>
        <info2>Dawkins</info2>
        <info3>null</info3>
        <info4>null</info4>
        <date>"2021-09-23 12:46:05"</date>
    </npais>
</response>