getFriends method
Returns all friends for a user including when the relationship began.
Friendship is a 2 way relationship where each user follows the other.
id
- User slug
useOAuth
- whether to make the request using OAuth header
🔓 OAuth Optional ✨ Extended Info
Implementation
Future<List<Friend>> getFriends(String id, {bool useOAuth = false, bool extendedFull = false}) async {
if (useOAuth) {
return await _manager._authenticatedGetList<Friend>("users/$id/friends", extendedFull: extendedFull);
}
return await _manager._getList<Friend>("users/$id/friends", extendedFull: extendedFull);
}