Account

About the logged in Network

HTTP METHOD
End Point
Description
GET
/network/account
List the Network Details
PATCH
/network/account
Edit the Network Details

GET Details

Sample Request

1
curl -X GET -H "X-Api-Key: {key}" -H "Content-Type: application/json" -H "Cache-Control: no-cache" "https://api.trackier.com/network/account"
Copied!

Response Body

1
{
2
"success": true,
3
"data": {
4
"currencyCodes": [
5
"INR",
6
"USD",
7
"PKR",
8
"AUD",
9
"EUR",
10
"GBP"
11
],
12
"network": {
13
"name": "Test",
14
"domain": "demo",
15
"url": "demo.vnative.com",
16
"appearance": {
17
"email": "[email protected]",
18
"support": "",
19
"termsurl": "",
20
"hlogo": ""
21
},
22
"region": {
23
"currency": "USD",
24
"zone": "Asia/Kolkata"
25
},
26
"_id": "57c4718434243dc47d8b456b",
27
"live": true,
28
"created": "2016-10-06",
29
"modified": "2017-01-29",
30
"meta": {
31
"bill": {
32
"mic": "",
33
"tcc": ""
34
},
35
"widgets": [
36
"top10pubs",
37
"top10ads"
38
],
39
"widget": {
40
"top10pubs": [
41
{
42
"_id": "57e262141d41c81f2b04b8d0",
43
"username": "test pub",
44
"count": 2
45
},
46
{
47
"_id": "585306ddb6920d048c717594",
48
"username": "#testing_demo_account",
49
"count": 1
50
}
51
],
52
"top10ads": [
53
{
54
"_id": "587d16efb6920d7107695620",
55
"clicks": 1
56
},
57
{
58
"_id": "57f88e761d41c80ec577f11f",
59
"clicks": 1
60
},
61
{
62
"_id": "58884efcb6920d38c60a7ca2",
63
"clicks": 1
64
}
65
]
66
}
67
}
68
}
69
}
70
}
Copied!

Edit Details

Sample Request

1
curl -X PATCH -H "X-Api-Key: {key}" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -H "Postman-Token: 080b2b96-5d26-c632-1c6d-d9d05e3393a1" -d '{
2
"name": "Changing Blah",
3
"email": "[email protected]",
4
"support": "http://somedomain.com/path/to/support/link",
5
"termsurl": "http://somedomain.com/path/to/terms-and-conditions",
6
"currency": "USD"
7
}' "https://api.trackier.com/network/account"
Copied!
Fields
Description
Type
Nullable
name
Network Name
string
Yes
url
Network URL
string
Yes
email
Network Support email
string
Yes
support
Network Support Link
string
Yes
termsurl
Network Terms and conditions link
string
Yes
currency
Network currency
string
Yes

Response Body

1
{
2
{
3
"success": true,
4
"data": {
5
"currencyCodes": [
6
"INR",
7
"USD",
8
"PKR",
9
"AUD",
10
"EUR",
11
"GBP"
12
],
13
"network": {
14
"name": "Changing Blah",
15
"domain": "demo",
16
"url": "demo.vnative.com",
17
"appearance": {
18
"email": "[email protected]",
19
"support": "http://somedomain.com/path/to/support/link",
20
"termsurl": "http://somedomain.com/path/to/terms-and-conditions",
21
"hlogo": "589057bd1f95c.png",
22
"logo": "58904730b5f92.png"
23
},
24
"region": {
25
"currency": "INR",
26
"zone": "Asia/Kolkata"
27
},
28
"_id": "{id}",
29
"live": true,
30
"created": "2016-10-17",
31
"modified": "2017-02-07",
32
"meta": {}
33
}
34
}
35
}
36
}
Copied!