getAssociate()

Get Associate.

Info: Enterprise account required. Contact us if you're interested about opening Enterprise account.

Parameters:

Name Type Description
distributorToken string Contact us to get your distributorToken.
associateEmail integer Set email of your associate.
- required parameter

Request:

    [
    {
    "method": "getAssociate",
    "params": {
    "distributorToken": "Xlrx-SjTLVMCsaRsOf2q2hvWKOlrF57yHknDRRRMX-13Fz-x",
    "associateEmail": "new@associate.com"
    },
    "jsonrpc": "2.0",
    "id": 1
    }
    ]

Response:

    [
    {
    "result": {
    "id": "132013808",
    "email": "new@associate.com",
    "currency": "EUR",
    "locale": "fr_FR",
    "country": "FR",
    "firstName": "John",
    "lastName": "Associate",
    "siteName": "John's Blog",
    "publisherData": "",
    "licenseType": "plug_and_go"
    },
    "id": "1",
    "error": null,
    "jsonrpc": "2.0"
    }
    ]

Example:

<?php
    $associateEmail = 'new@associate.com';

    $cleengApi = new Cleeng_Api();
    $cleengApi->setDistributorToken('Xlrx-SjTLVMCsaRsOf2q2hvWKOlrF57yHknDRRRMX-13Fz-x');//enterprise account required

    $associateInfo = $cleengApi->getAssociate($associateEmail);
    

Remember! you can always check it by yourself using API Console - getAssociate()

Back to Associates