Clients - wowanalytics/Api-Samples GitHub Wiki

#Clients

####/clients This method returns a list of clients that you have access to. The return will look like the following see

[
    {
        "id": "157a7a31-464b-4ec8-a48d-dd16c3e72ce6",
        "name": "{{Client Name within WOW}}",
        "accountExpiry": "2019-01-01T00:00:00",
        "trackingCode": "{{The Client Tracking Code}}",
        "domains": [
            "domain1.com",
            "domain2.com"
        ]
    },
    {
        "id": "157a7a31-464b-4ec8-a48d-dd16c3e72ce6",
        "name": "{{Client Name within WOW}}",
        "accountExpiry": "2019-01-01T00:00:00",
        "trackingCode": "{{The Client Tracking Code}}",
        "domains": [
            "domain1.co.uk",
            "domain2.co.uk"
            ]
    }
]

id the client id
name the client name
accountExpiry the date that the account expires
trackingCode the tracking code that needs to be on the clients site to track
domains list of the domains that are valid for tracking

####/client/{clientId} This method returns details about the selected client. The return will look like the following

{
    "id":"157a7a31-464b-4ec8-a48d-dd16c3e72ce6",
    "name":"{{Client Name within WOW}}",
    "accountExpiry": "2019-01-01T00:00:00",
    "companyVisitsToday":6,
    "companyVisitsThisMonth":71
    "trackingCode": "sample string 3",
    "domains": [
        "sample string 1",
        "sample string 2"
        ]
}

id the client id
name the client name
accountExpiry the date that the account expires
companyVisitsToday the number of company visits to the client website today
companyVisitsThisMonth the number of company visits to the client website this month
trackingCode the tracking code that needs to be on the clients site to track
domains list of the domains that are valid for tracking