Advertiser UsersΒΆ

For convenience, the API provides an interface for performing operations on specific advertiser users. This is useful for situations where it is inconvenient to send an array of all existing advertiser users.

Endpoint:

https://invoca.net/api/2015-12-09/<network_id>/advertisers/<advertiser_id_from_network>/users/<user_id_from_network>.json

Examples

Read all advertiser users for advertiser e0Fv6YEk

Endpoint:

https://invoca.net/api/2015-12-09/<network_id>/advertisers/e0Fv6YEk/users.json

Format: application/json

Response Code: 200

Response Body:

[
  {
    "email_address": "[email protected]",
    "id_from_network": "549494858585Dxlj2uCX0ijqXP4nAW",
    "first_name": "Chris",
    "contact_country_code": "1",
    "last_name": "Dean",
    "role": "Manager",
    "oauth_refresh_token": "556588585858585858585858858",
    "contact_phone_number": "8886033760"
  }
]

Examples

Read a specific advertiser user

Endpoint:

https://invoca.net/api/2015-12-09/<network_id>/advertisers/e0Fv6YEk/users/549494858585Dxlj2uCX0ijqXP4nAW.json

Format: application/json

Response Code: 200

Response Body:

{
  "email_address": "[email protected]",
  "id_from_network": "549494858585Dxlj2uCX0ijqXP4nAW",
  "first_name": "Chris",
  "contact_country_code": "1",
  "last_name": "Dean",
  "role": "Manager",
  "oauth_refresh_token": "556588585858585858585858858",
  "contact_phone_number": "8886033760"
}

Examples

Create an advertiser user

Endpoint:

https://invoca.net/api/2015-12-09/<network_id>/advertisers/e0Fv6YEk/users.json

Request Body:

{
  "user": {
    "id_from_network": "549494858585Dxlj2uCX0ijqXP4nAW",
    "email_address": "[email protected]",
    "first_name": "Chris",
    "last_name": "Dean",
    "contact_phone_number": "8055555555",
    "oauth_refresh_token": "556588585858585858585858858",
    "role": "Manager"
  }
}

Examples

Update an Advertiser User

Endpoint:

https://invoca.net/api/2015-12-09/<network_id>/advertisers/e0Fv6YEk/users/<user_id>

Request Body:

{
  "user": {
    "first_name": "Chris",
    "last_name": "Dean",
    "contact_phone_number": "8055555555",
    "role": "Manager"
  }
}

Examples

Delete an advertiser user

Endpoint:

https://invoca.net/api/2015-12-09/<network_id>/advertisers/e0Fv6YEk/users/549494858585Dxlj2uCX0ijqXP4nAW.json

Format: application/json

Response Code: 200

Response Body:

{
}