> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFFriendsClientGetFriendsListAsync

> Recupera a lista de amigos atual do usuário local, restrita a usuários que têm contas do PlayFab. Amigos de contas vinculadas (Facebook, Steam) também são.

Recupera a lista de amigos atual do usuário local, restrita a usuários que têm contas do PlayFab. Amigos de contas vinculadas (Facebook, Steam) também são incluídos. Opcionalmente, você pode excluir os amigos de alguns serviços vinculados.

## Sintaxe

```cpp theme={null}
HRESULT PFFriendsClientGetFriendsListAsync(  
    PFEntityHandle entityHandle,  
    const PFFriendsClientGetFriendsListRequest* request,  
    XAsyncBlock* async  
)  
```

### Parâmetros

**`entityHandle`**   PFEntityHandle

PFEntityHandle a ser usado para autenticação.

**`request`**   [PFFriendsClientGetFriendsListRequest\*](/pt-BR/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientgetfriendslistrequest)

Objeto de solicitação preenchido.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock para a operação assíncrona.

### Valor de retorno

Tipo: HRESULT

Código de resultado desta operação de API.

## Comentários

Esta API está disponível em todas as plataformas. Consulte também ClientAddFriendAsync, ClientGetPlayerProfileAsync, ClientRemoveFriendAsync. Quando a tarefa assíncrona for concluída, chame [PFFriendsClientGetFriendsListGetResultSize](/pt-BR/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresultsize) e [PFFriendsClientGetFriendsListGetResult](/pt-BR/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresult) para obter o resultado.

## Requisitos

**Cabeçalho:** PFFriends.h

## Confira também

[Membros de PFFriends](/pt-BR/services/playfab/api-references/c/pffriends/pffriends_members)


## Related topics

- [PFFriendsClientGetFriendsListGetResult](/pt-BR/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresult.md)
- [Visão geral da API C do Services - PFFriends.h](/pt-BR/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsClientAddFriendAsync](/pt-BR/services/playfab/api-references/c/pffriends/functions/pffriendsclientaddfriendasync.md)
- [PFFriendsClientGetFriendsListGetResultSize](/pt-BR/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresultsize.md)
- [PFFriendsClientGetFriendsListRequest](/pt-BR/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientgetfriendslistrequest.md)
