CAMPAGNE / Campaign.Create
Creazione e gestione delle campagne email
Crea una nuova campagna sulla console. Per avviare una nuova campagna รจ necessaio prima creare la campagna con il comando Create quindi impostarne le caratteristiche utilizzando il comando Update
Esempio:
SessionID=yourSessionID &Command=Campaign.Create &ResponseFormat=JSON &CampaignName=yourValue
PARAMETRI RICHIESTA
Parametro | Tipo di dato | Richiesto | Definizione |
---|---|---|---|
SessionID | string | Session ID which is needed to authenticate the access. It's optional and required for desktop applications only | |
Command | string | The API Command sended to the console | |
ResponseFormat | JSON | XML | Response format | |
JSONPCallBack | bool | Send this parameter for cross-domain. More info about JSONP can be found here: http: //en.wikipedia.org/wiki/JSON#JSONP | |
CampaignName | string | Name of the new campaign we are creating |
PARAMETRI DI RISPOSTA
Parametro | Tipo di dato | Definizione |
---|---|---|
Success | bool | States if an error has been generated during last command execution or not |
ErrorCode | integer | The ErrorCode number, if an error has occurred. ErrorCode = 0 means no error has occurred. |
CampaignID | integer | ID of the new campaign record |
CODICI DI ERRORE
Codice | Definizione |
---|---|
1 | Campaign name is missing |
99998 | Authentication failure or session expired |
99999 | Not enough privileges |