Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

bq friend

Liam Jack edited this page Aug 31, 2015 · 1 revision

Endpoint

/bq/friend

Description

Used for adding, removing, blocking... friends

Block a friend

Request

  • action: block
  • friend: Friend username
  • friend_id: Friend user ID
  • block_reason_id: The ID of the reason behind blocking the user (see Notes)
  • identity_cell_index: -1
  • timestamp
  • req_token
  • username

Response

  • logged: true or false
  • message
  • param: friend value sent in the request

Notes

block_reason_id values:

  • 0: Other
  • 1: Inappropriate content
  • 2: Harassement
  • 3: Annonying
  • 4: I do not know the person

Unblock a friend

Request

  • action: unblock
  • friend: Friend username
  • identity_cell_index: -1
  • identity_profile_page: SETTINGS
  • timestamp
  • req_token
  • username

Response

  • logged: true or false
  • message
  • object: Friend object

Change friend's display name

Request

  • action: display
  • friend: Friend username
  • display: New display name
  • identity_cell_index: -1
  • identity_profile_page: PROFILE_MY_FRIENDS_PAGE
  • timestamp
  • req_token
  • username

Response

  • logged: true or false
  • message
  • object: Friend object

Delete a friend

Request

  • action: delete
  • friend: Friend username
  • friend_id: Friend user ID
  • identity_cell_index: -1
  • identity_profile_page: PROFILE_MY_FRIENDS_PAGE
  • timestamp
  • req_token
  • username

Response

  • logged: true or false
  • message
  • param: friend value sent in request
Clone this wiki locally