Get My Follower and Following list
Get My Follower and Following list
GET
/api/user_follow_contacts/
Request Headers
field | Required | headers Description | example |
---|---|---|---|
web3mq-request-pubkey | Yes | your login keyapir's public key | 59daabd77706ba022ceaed10e4275bd6 |
didkey | Yes | your did_type + ":" + did_value | eth:0xa1b1233fdfde |
Request Payload
Parameters in URL | Type | Required | Parameters Description |
---|---|---|---|
userid | string | Yes | |
timestamp | int | Yes | timestamp milliseconds |
follow_status | string | No | follow status |
web3mq_user_signature | string | Yes | use ed25519 base64 encode web3mq_signature see signing detail |
page | int | No | |
size | int | No |
web3mq_user_signature signing rule
web3mq_user_signature = ed25519 private key signing(userid + timestamp)
url query params
/api/user_follow_contacts/?userid=userid&follow_status=follow_each&web3mq_user_signature=web3mq_user_signature×tamp=timestamp&page=1&size=20
response
Parameters | Type | Always Return | Parameters Description |
---|---|---|---|
code | int | Yes | result code, 0 means success, other code see msg's contents |
msg | string | Yes | result description |
{
"code": 0,
"msg": "ok",
"data": {
"total_count": 10,
"user_list": [
{
"userid": "user:asdfasdfasdfa",
"follow_status": "following",
"permissions": {
"user:friend_request": {
"type": "enum",
"value": "deny_all" // Deny all friend request
}
}
},
{
"userid": "user:asdfasdfasdfa",
"follow_status": "following",
"permissions": {
"user:friend_request": {
"type": "enum",
"value": "need_agree" // Need this user agree friend request
}
}
},
{
"userid": "user:53245",
"follow_status": "follow_each",
"permissions": {
"user:friend_request": {
"type": "enum",
"value": "public" // All users can add friend to this user without limit
}
}
}
]
}
}