Get the Report

HTTP method End Point Description
GET /affiliate/report Get report stats


Sample Request

    // Initialize cURL and make the request
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, 'http://{network}/api/v1/affiliate/report/?api_key={api_key}&report_type=conversion&dateFrom={yyyy-mm-dd}&dateTo={yyyy-mm-dd}');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $response = curl_exec($ch);

    // Decode the response into a PHP associative array
    $response = json_decode($response, true);

    // Make sure that there wasn't a problem decoding the repsonse
        throw new RuntimeException(
            'API response not well-formed (json error code: '.json_last_error().')'

    // Print out the response details.
    echo <pre>'.print_r($response, true).'';
    echo PHP_EOL;

Response body

results matching ""

    No results matching ""