Publisher endpoints

  • Main Url : https://api.clearad.io/v1/publisher/

Creating Publisher

  • url: - Main Url
  • method: - POST
  • body: - JSON

    {
    "name": String,
    "email": String,
    "description": String,
    "avatar": String,
    "ethAddress": String
    }
    
  • response_code: -

    200  - register successfull
    405  - Invalid input
    401  - Unauthorized
    

Getting Publisher

  • url: - Main Url
  • method: - GET
  • response_code: -

    200  - JSON_Object
    401  - Unauthorized
    
  • response_example:-

    {
    "date": "2000-01-23T00:00:00.000Z",
    "name": "name",
    "activate": true,
    "description": "description",
    "id": "id",
    "avatar": "avatar",
    "ethAddress": "ethAddress"
    }
    

Modifying details of publisher

  • url: - Main Url
  • method: - PUT
  • body: -

    {
    "name": String,
    "activate": Boolean,
    "description": String,
    "avatar": String,
    "ethAddress": String
    }
    
  • response_code: -

    200  - successfull updated
    400  - Invalid ID supplied
    401  - Unauthorized
    404  - Publisher not found