> ## 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.

# PFAccountManagementClientLinkTwitchAsync

> Vincula a conta Twitch associada ao token à conta PlayFab do usuário.

Vincula a conta Twitch associada ao token à conta PlayFab do usuário.

## Sintaxe

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

### Parâmetros

**`entityHandle`**   PFEntityHandle

PFEntityHandle a ser usado para autenticação.

**`request`**   [PFAccountManagementClientLinkTwitchAccountRequest\*](/pt-BR/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementclientlinktwitchaccountrequest)

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 no Linux e macOS. Consulte também ClientLoginWithTwitchAsync, ClientUnlinkTwitchAsync. Chame XAsyncGetStatus para obter o status da operação. Se a chamada de serviço não for bem-sucedida, o resultado assíncrono será E\_PF\_ACCOUNT\_ALREADY\_LINKED, E\_PF\_ACCOUNT\_LINKED\_TO\_A\_BANNED\_PLAYER, E\_PF\_FEATURE\_NOT\_CONFIGURED\_FOR\_TITLE, E\_PF\_INVALID\_TWITCH\_TOKEN, E\_PF\_LINKED\_ACCOUNT\_ALREADY\_CLAIMED, E\_PF\_TWITCH\_RESPONSE\_ERROR ou qualquer um dos erros globais do Serviço PlayFab. Consulte a página de documentação "Handling PlayFab Errors" para obter mais detalhes sobre o tratamento de erros.

## Requisitos

**Cabeçalho:** PFAccountManagement.h

## Confira também

[Membros de PFAccountManagement](/pt-BR/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members)


## Related topics

- [Visão geral da API C de serviços - PFAccountManagement.h](/pt-BR/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)
- [PFAccountManagementClientLinkTwitchAccountRequest](/pt-BR/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementclientlinktwitchaccountrequest.md)
- [PFAccountManagementClientUnlinkTwitchAsync](/pt-BR/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientunlinktwitchasync.md)
- [PFAccountManagementLinkTwitchAccountRequest](/pt-BR/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementlinktwitchaccountrequest.md)
- [PFAccountManagementClientLinkPSNAccountAsync](/pt-BR/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientlinkpsnaccountasync.md)
