Phu Quoc Dog
Search…
Following

Retrieves all followers

This endpoint retrieves all followers. The results returned are paginated.
HTTP Request: GET ${HOST}/followers/me
Special Query Parameters
Parameter
Default
Description
Example
page
false
Return results pertaining to that page
page=3
limit
10
The number of results returned per page
limit=50
Sample request gets two items:
1
// Some code
2
curl -H "Content-Type: application/json" -X GET https://api.phuquoc.dog/followers/me?limit=2&page=1&key=xxx
Copied!
Sample response:
1
// Some code
2
{
3
"data": [
4
{
5
"id": 3,
6
"roleId": 4,
7
"username": "akita",
8
"email": "[email protected]",
9
"title": Fan,
10
"firstname": Akita,
11
"lastname": null,
12
"image": null,
13
"cover": null,
14
"country": null,
15
"zone": null,
16
"address": null,
17
"zipcode": null,
18
"profile": null,
19
"bio": null,
20
"url": null,
21
"amount": 0,
22
"deposited": 0,
23
"lastLogin": "2020-01-14 02:59:41",
24
"active": 1,
25
"language": "en",
26
"specialRoles": 1048576,
27
"creationDate": "2021-11-18 11:32:14",
28
"modifiedDate": "2021-11-19 16:33:16",
29
"activeDate": "2021-11-18 11:32:14",
30
"artistNameUrl": "akita",
31
"organizational": 0,
32
"emailNotification": 1,
33
"deviceRegistered": 1
34
},
35
{
36
"id": 9,
37
"roleId": 4,
38
"username": "shiba",
39
"email": "[email protected],
40
"title": null,
41
"firstname": "Fan",
42
"lastname": "Shiba",
43
"image": {
44
"id": 149,
45
"key": "avatar/shiba.jpg",
46
"privacy": "public-read",
47
"url": "https://cdn.phuquoc.dog/avatar/shiba.jpg",
48
"expires": 1431967400,
49
"originalFileName": "skydivefilip-square.jpg",
50
"fileSize": null,
51
"cdn": "https://cdn.phuquoc.dog/avatar/shiba.jpg"
52
},
53
"cover": 5,
54
"country": null,
55
"zone": null,
56
"address": "London",
57
"zipcode": null,
58
"profile": null,
59
"bio" : "Decentralized social network and NFT platform for pets ",
60
"url": "http://fvda.co.uk",
61
"amount": 0,
62
"deposited": 0,
63
"lastLogin": "2020-01-09 10:07:10",
64
"active": 1,
65
"language": "en",
66
"specialRoles": 65536,
67
"creationDate": "2015-04-30 13:33:53",
68
"modifiedDate": "2016-10-19 13:08:10",
69
"activeDate": "2015-07-04 00:00:00",
70
"artistNameUrl": "filip_visnjic",
71
"organizational": 0,
72
"emailNotification": 1,
73
"deviceRegistered": 1
74
}
75
],
76
"meta": {
77
"pagination": {
78
"total": 2,
79
"count": 1,
80
"per_page": 2,
81
"current_page": 1,
82
"total_pages": 1,
83
"links": {}
84
}
85
}
86
}
Copied!

Get followers to specify user

This endpoint retrieves all followers by a specific user. The results returned are paginated.
HTTP Request: GET ${HOST}/followers/user/{username|userId}
Special Query Parameters
Parameter
Default
Description
Example
page
false
Return results pertaining to that page
page=3
limit
10
The number of results returned per page
limit=50
Sample request get two item with user eric
1
curl -H "Content-Type: application/json" -X GET ${HOST}/followers/user/pqd?limit=2&page=1&key=xxx
Copied!

Retrieves all following.

This endpoint retrieves all following. The results returned are paginated.
HTTP Request: GET ${HOST}/following/me
Special Query Parameters
Parameter
Default
Description
Example
page
false
Return results pertaining to that page
page=3
limit
10
The number of results returned per page
limit=50
Sample request gets two items:
1
// Some code
2
curl -H "Content-Type: application/json" -X GET ${HOST}/following/me?limit=2&page=1&key=xxx
Copied!

Get the following specific user

This endpoint retrieves all followers by specific the user. The results returned are paginated.
HTTP Request: GET ${HOST}/following/user/{username|userId}
Special Query Parameters
Parameter
Default
Description
Example
page
false
Return results pertaining to that page
page=3
limit
10
The number of results returned per page
limit=50
Sample request get one item with user pqd
1
// Some code
2
curl -H "Content-Type: application/json" -X GET ${HOST}/following/user/pqd?limit=1&page=1&key=xxx
Copied!
Sample response:
1
// Some code
2
{
3
"data": [
4
{
5
"id": 4,
6
"roleId": 5,
7
"username": "shiba",
8
"email": "[email protected]",
9
"title": null,
10
"firstname": null,
11
"lastname": null,
12
"image": null,
13
"cover": null,
14
"country": null,
15
"zone": null,
16
"address": null,
17
"zipcode": null,
18
"profile": null,
19
"bio": null,
20
"url": null,
21
"amount": null,
22
"deposited": null,
23
"lastLogin": "2021-12-15 07:37:02",
24
"active": 1,
25
"language": "en",
26
"specialRoles": 851971,
27
"creationDate": "2021-12-1 07:37:02",
28
"modifiedDate": "2021-12-3 07:37:02",
29
"activeDate": "2021-12-15 07:37:02",
30
"artistNameUrl": null,
31
"organizational": null,
32
"emailNotification": 1,
33
"deviceRegistered": 1
34
}
35
],
36
"meta": {
37
"pagination": {
38
"total": 3,
39
"count": 2,
40
"per_page": 2,
41
"current_page": 1,
42
"total_pages": 2,
43
"links": {
44
"next": 2
45
}
46
}
47
}
48
}
Copied!

Create a new following

HTTP Request: POST ${HOST}/following
Property Name
Type
Description
Default
Required
userId
int
The user id you want to following
n/a
yes
For example, to create the following user with id = 10the json will be like that.
1
follow.json
2
{
3
"userId" : "10",
4
}
5
curl "${HOST}/following" \
6
-X POST \
7
-H "Authorization: Bearer 123456" \
8
-H "Content-Type: application/json" \
9
-d @follow.json
Copied!
Result:
1
// Some code
2
{
3
"data": {
4
"id": 11,
5
"roleId": 4,
6
"username": "bitcoin",
7
"email": "[email protected]",
8
"title": null,
9
"firstname": null,
10
"lastname": null,
11
"image": null,
12
"cover": null,
13
"country": null,
14
"zone": null,
15
"address": null,
16
"zipcode": null,
17
"profile": null,
18
"bio": null,
19
"url": null,
20
"amount": 0,
21
"deposited": 0,
22
"lastLogin": "2021-12-16 16:20:06",
23
"active": 1,
24
"language": "en",
25
"specialRoles": 0,
26
"creationDate": "2021-12-06 16:20:06",
27
"modifiedDate": "2021-12-06 16:20:06",
28
"activeDate": "2021-12-06 16:20:06",
29
"artistNameUrl": "bitcoin",
30
"organizational": 0,
31
"emailNotification": 1,
32
"deviceRegistered": 1
33
}
34
}
Copied!
Last modified 6mo ago