P2P Advertiser Relations (p2p_advertiser_relations)¶
Updates and returns favourite and blocked advertisers of the current user.
Auth Scope(s): payments
-
p2p_advertiser_relations
(add_blocked: Optional[List] = None, add_favourites: Optional[List] = None, remove_blocked: Optional[List] = None, remove_favourites: Optional[List] = None, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int¶ Parameters: - add_blocked (Optional[List]) – IDs of advertisers to block.
- add_favourites (Optional[List]) – IDs of advertisers to add as favourites.
- remove_blocked (Optional[List]) – IDs of advertisers to remove from blocked.
- remove_favourites (Optional[List]) – IDs of advertisers to remove from favourites.
- passthrough (Optional[Any]) – [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.
- req_id (Optional[int]) – [Optional] Used to map request to response.
Returns: req_id
Return type: int
Example¶
binary.api.p2p_advertiser_relations()