Add relationship filter to api_friends_ids and api_followers_ids

This commit is contained in:
Hypolite Petovan 2019-12-13 11:43:45 -05:00
parent 81b9d25906
commit c9c30e4a23

View file

@ -3657,11 +3657,14 @@ function api_ff_ids($type, int $rel)
* @return array|string * @return array|string
* @throws BadRequestException * @throws BadRequestException
* @throws ForbiddenException * @throws ForbiddenException
* @throws ImagickException
* @throws InternalServerErrorException
* @throws UnauthorizedException
* @see https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friends-ids * @see https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friends-ids
*/ */
function api_friends_ids($type) function api_friends_ids($type)
{ {
return api_ff_ids($type); return api_ff_ids($type, Contact::SHARING);
} }
/** /**
@ -3672,11 +3675,14 @@ function api_friends_ids($type)
* @return array|string * @return array|string
* @throws BadRequestException * @throws BadRequestException
* @throws ForbiddenException * @throws ForbiddenException
* @throws ImagickException
* @throws InternalServerErrorException
* @throws UnauthorizedException
* @see https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-followers-ids * @see https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-followers-ids
*/ */
function api_followers_ids($type) function api_followers_ids($type)
{ {
return api_ff_ids($type); return api_ff_ids($type, Contact::FOLLOWER);
} }
/// @TODO move to top of file or somewhere better /// @TODO move to top of file or somewhere better