• log in
« Go back to the home page

Block

This endpoint may be used to get information of blocked users and modify them.

The Block object

Property Type Description
id integer The unique identifier of this Block
user User The creator of this Block
target User The user that was blocked
time string The timestamp of when this Block was created

GET /block

Get information of a block created by the current user, targeting a specific user.
Requires authorization

Parameters

Property Type Description
id integer The ID of the target user

Response

Returns a single Block object.


POST /block

Creates a new Block from the current user to a specific user.
Requires authorization

Parameters

Property Type Description
id integer The ID of the target user

Response

Returns a single Block object.


DELETE /block

Deletes a Block from the current user to a specific user.
Requires authorization

Parameters

Property Type Description
id integer The ID of the target user

GET /blocks

Gets all created blocks for the current user.
Requires authorization

Parameters

Property Type Description
max integer The maximum ID for blocks to look for

Response

Returns multiple Block objects.


© Copyright 2018-2022 Gigadrive - All rights reserved.
Contact Info • About • Terms of Service • Privacy Policy • Disclaimer • Developers