Create a new advertiser

HTTP method EndPoint
POST /api/admin/createadvertiser

Request body parameters

curl -X POST -H 
"X-Api-Key: {key}"
 -H 
"Content-Type: application/json"
 -H 
"Cache-Control: no-cache"
 -H 
"Postman-Token: cc5d7610-80aa-8f1b-983d-fc5712fcfb53"
-d
'{
  "name": "Awesome User",
  "email": "test@gmail.com",
  "password": "somethingCool!!",
  "phone": "yo"
}'
 http://{network}/api/admin/createadvertiser
Field Type Description Nullable
name string Name of the advertiser No
email string Email of the advertiser No
password string Password of the advertiser No
phone string Phone Number of the advertiser Yes
country string Country (Two letter country code) Yes

Response body parameters

{

"success"
: 
true
,

"data"
: {

"user"
: {

"org_id"
: 
"string"
,

"username"
: 
"Awesome User"
,

"name"
: 
"Awesome User"
,

"email"
: 
"test@gmail.com"
,

"password"
: 
"da39a3ee5e6b4b0d3255bfef95601890afd80709"
,

"phone"
: 
"9998887776"
,

"country"
: 
"IN"
,

"currency"
: 
"USD"
,

"type"
: 
"publisher"
,

"login"
: 
null
,

"_id"
: 
"5821f9e81d41c86b2e664df3"
,

"live"
: 
false
,

"created"
: 
"2016-11-08"
,

"modified"
: 
null
,

"meta"
: []
    },

"message"
: 
"Advertiser Added!!"
,
  }
}

results matching ""

    No results matching ""