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

# PFAccountManagementServerGetPlayFabIDsFromTwitchIDsAsync

> 服务器 API，用于为一组 Twitch 用户 ID 查找 PlayFab ID，使游戏服务器能够将 Twitch 帐户标识符映射到 PlayFab 玩家帐户。

检索给定 Twitch 标识符集所对应的唯一 PlayFab 标识符。Twitch 标识符是用户帐户的 ID，可从 Twitch API 方法中作为“\_id”获取（例如：[https://github.com/justintv/Twitch-API/blob/master/v3\_resources/users.md#get-usersuser](https://github.com/justintv/Twitch-API/blob/master/v3_resources/users.md#get-usersuser)）。

## 语法

```cpp theme={null}
HRESULT PFAccountManagementServerGetPlayFabIDsFromTwitchIDsAsync(  
    PFEntityHandle titleEntityHandle,  
    const PFAccountManagementGetPlayFabIDsFromTwitchIDsRequest* request,  
    XAsyncBlock* async  
)  
```

### 参数

**`titleEntityHandle`**   PFEntityHandle

使用 PFAuthenticationGetEntityWithSecretKeyAsync 获取的标题实体的 PFEntityHandle。

**`request`**   [PFAccountManagementGetPlayFabIDsFromTwitchIDsRequest\*](/services/playfab/api-references/c/pfaccountmanagementtypes/structs/pfaccountmanagementgetplayfabidsfromtwitchidsrequest)

已填充的请求对象。

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

用于异步操作的 XAsyncBlock。

### 返回值

类型：HRESULT

此 API 操作的结果代码。

## 备注

此 API 可在 Win32、Linux 和 macOS 上使用。当异步任务完成时，请调用 [PFAccountManagementServerGetPlayFabIDsFromTwitchIDsGetResultSize](/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetplayfabidsfromtwitchidsgetresultsize) 和 [PFAccountManagementServerGetPlayFabIDsFromTwitchIDsGetResult](/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetplayfabidsfromtwitchidsgetresult) 获取结果。

## 要求

**头文件：** PFAccountManagement.h

## 另请参阅

[PFAccountManagement 成员](/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members)


## Related topics

- [PFAccountManagementServerGetPlayFabIDsFromTwitchIDsGetResult](/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetplayfabidsfromtwitchidsgetresult.md)
- [服务 C API 概览 - PFAccountManagement.h](/zh-CN/services/playfab/api-references/c/pfaccountmanagement/pfaccountmanagement_members.md)
- [PFAccountManagementServerGetPlayFabIDsFromTwitchIDsGetResultSize](/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementservergetplayfabidsfromtwitchidsgetresultsize.md)
- [PFAccountManagementClientGetPlayFabIDsFromTwitchIDsAsync](/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientgetplayfabidsfromtwitchidsasync.md)
- [PFAccountManagementClientGetPlayFabIDsFromTwitchIDsGetResult](/zh-CN/services/playfab/api-references/c/pfaccountmanagement/functions/pfaccountmanagementclientgetplayfabidsfromtwitchidsgetresult.md)
