store 1 or more conversions
The following errors can occur:
- The conversions parameter is required
- The conversion parameter is not a array
- The conversion parameter is missing a array with a action key
- The conversion parameter is missing a array with a value key
- The key parameter is required
- The key parameter has the wrong format
- Mailing has not been found
- Subscriber not found
- Something went wrong, please try again later
You should call this function as followed:
- rest/v2/subscriber/storeConversion?token=TOKEN&database=DATABASE_ID
&conversions[0][action]=ACTION&conversions[0][value]=FLOAT
&conversions[1][action]=ACTION&conversions[1][value]=FLOAT
&key=EMARKCONV (also possible through POST)
require_once 'Rest.php';
$username = 'my_username';
$password = 'my_password';
$database = '999';
$rest = new Rest($username, $password, $database);
$result = $rest->call('subscriber/storeConversions', [
'database' => 'DATABASE_ID'
], 'GET');
var_dump($result);
The following parameters this method can/should be called with:
key: conversions (which contains an array with the keys 'action' and 'value'
values: array, required
what: The converions you want to register
key: key
values: string, required
what: The string which is given in the url (emarkconv)
The following items:
- user/login For the TOKEN.
- user/database For the DATABASE_ID