Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async def friends_remove_or_decline(self, user_id: str) -> Any:
r = FriendsPublicService(
'/friends/api/v1/{client_id}/friends/{user_id}',
client_id=self.client.user.id,
user_id=user_id
)
return await self.delete(r)
async def friends_remove_nickname(self, user_id: str) -> Any:
r = FriendsPublicService(
'/friends/api/v1/{client_id}/friends/{user_id}/alias',
client_id=self.client.user.id,
user_id=user_id
)
return await self.delete(r)
async def friends_remove_all(self) -> Any:
r = FriendsPublicService('/friends/api/v1/{client_id}/friends',
client_id=self.client.user.id)
return await self.delete(r)
async def friends_set_note(self, user_id: str, note: str) -> Any:
r = FriendsPublicService(
'/friends/api/v1/{client_id}/friends/{user_id}/note',
client_id=self.client.user.id,
user_id=user_id
)
return await self.put(r, data=note)
async def friends_set_nickname(self, user_id: str, nickname: str) -> Any:
r = FriendsPublicService(
'/friends/api/v1/{client_id}/friends/{user_id}/alias',
client_id=self.client.user.id,
user_id=user_id
)
return await self.put(r, data=nickname)
async def friends_unblock(self, user_id: str) -> Any:
r = FriendsPublicService(
'/friends/api/v1/{client_id}/blocklist/{user_id}',
client_id=self.client.user.id,
user_id=user_id
)
return await self.delete(r)
async def friends_remove_note(self, user_id: str) -> Any:
r = FriendsPublicService(
'/friends/api/v1/{client_id}/friends/{user_id}/note',
client_id=self.client.user.id,
user_id=user_id
)
return await self.delete(r)
async def friends_block(self, user_id: str) -> Any:
r = FriendsPublicService(
'/friends/api/v1/{client_id}/blocklist/{user_id}',
client_id=self.client.user.id,
user_id=user_id
)
return await self.post(r)
async def friends_get_mutual(self, user_id: str) -> Any:
r = FriendsPublicService(
'/friends/api/v1/{client_id}/friends/{user_id}/mutual',
client_id=self.client.user.id,
user_id=user_id
)
return await self.get(r)
async def friends_get_blocklist(self) -> list:
r = FriendsPublicService('/friends/api/v1/{client_id}/blocklist',
client_id=self.client.user.id)
return await self.get(r)