> ## 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 la lista de amigos actual del usuario local, restringida a los usuarios que tienen cuentas de PlayFab. Los amigos de cuentas vinculadas (Facebook, Steam) también.

Recupera la lista de amigos actual del usuario local, restringida a los usuarios que tienen cuentas de PlayFab. También se incluyen los amigos de cuentas vinculadas (Facebook, Steam). Opcionalmente, puede excluir los amigos de algunos servicios vinculados.

## Sintaxis

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

### Parámetros

**`entityHandle`**   PFEntityHandle

PFEntityHandle que se usará para la autenticación.

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

Objeto de solicitud rellenado.

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

XAsyncBlock para la operación asincrónica.

### Valor devuelto

Tipo: HRESULT

Código de resultado de esta operación de API.

## Comentarios

Esta API está disponible en todas las plataformas. Consulte también ClientAddFriendAsync, ClientGetPlayerProfileAsync, ClientRemoveFriendAsync. Cuando se complete la tarea asincrónica, llame a [PFFriendsClientGetFriendsListGetResultSize](/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresultsize) y [PFFriendsClientGetFriendsListGetResult](/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresult) para obtener el resultado.

## Requisitos

**Encabezado:** PFFriends.h

## Consulte también

[Miembros de PFFriends](/services/playfab/api-references/c/pffriends/pffriends_members)


## Related topics

- [PFFriendsClientGetFriendsListGetResult](/es/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresult.md)
- [Información general de la API de C de Services - PFFriends.h](/es/services/playfab/api-references/c/pffriends/pffriends_members.md)
- [PFFriendsClientAddFriendAsync](/es/services/playfab/api-references/c/pffriends/functions/pffriendsclientaddfriendasync.md)
- [PFFriendsClientGetFriendsListGetResultSize](/es/services/playfab/api-references/c/pffriends/functions/pffriendsclientgetfriendslistgetresultsize.md)
- [PFFriendsClientGetFriendsListRequest](/es/services/playfab/api-references/c/pffriendstypes/structs/pffriendsclientgetfriendslistrequest.md)
