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

# 内容与配置读取计量 API 说明

> PlayFab Admin 与 Client API 参考列表：实体文件、操作、规则和标题新闻等会累加内容与配置读取计量。

内容与配置文件包括以下项目：实体文件、操作、规则、计划任务、匹配、推送通知、电子邮件以及标题新闻。内容与配置文件是一组主要用于远程管理游戏配置的键/值对。

以下 API 会导致内容与配置读取计量累加。

## Admin API

* [GetContentUploadUrl](https://learn.microsoft.com/en-us/rest/api/services/playfab/admin/content/get-content-upload-url?view=playfab-rest\&preserve-view=true) 获取用于上传内容文件的预签名 URL。随后向返回的 URL 发起 HTTP PUT 请求即可上传内容。另请注意，Content 服务专指 PlayFab 的 CDN 产品，因此按标准 CDN 费率计费。
* [GetActionsOnPlayersInSegmentTaskInstance](https://learn.microsoft.com/en-us/rest/api/services/playfab/admin/scheduled-task/get-actions-on-players-in-segment-task-instance?view=playfab-rest\&preserve-view=true) 获取 ActionsOnPlayersInSegment 任务实例的信息。

## Client API

* [GetTitleNews](https://learn.microsoft.com/en-us/rest/api/services/playfab/client/title-wide-data-management/get-title-news?view=playfab-rest\&preserve-view=true) 检索开发者门户中所配置的标题新闻源。
* [GetContentDownloadUrl](https://learn.microsoft.com/en-us/rest/api/services/playfab/client/content/get-content-download-url?view=playfab-rest\&preserve-view=true) 此 API 检索用于访问该标题下内容文件的预签名 URL。随后对返回的 URL 发起 HTTP GET 请求将尝试下载该内容。使用 HEAD 查询该 URL 则会尝试检索内容的元数据。请注意，成功返回结果并不保证内容一定存在——如果尚未上传，则获取数据的查询将失败。另请注意，Content 服务专指 PlayFab 的 CDN 产品，因此按标准 CDN 费率计费。
* [GetPhotonAuthenticationToken](https://learn.microsoft.com/en-us/rest/api/services/playfab/client/authentication/get-photon-authentication-token?view=playfab-rest\&preserve-view=true) 获取 Photon 自定义身份验证令牌，可用于安全地将玩家加入 Photon 房间。详见 [Photon 快速入门](/services/playfab/live-service-management/service-gateway/add-ons/photon/quickstart)。
* [GetTitlePublicKey](https://learn.microsoft.com/en-us/rest/api/services/playfab/client/authentication/get-title-public-key?view=playfab-rest\&preserve-view=true) 返回标题的 base64 编码 RSA CSP blob。
* [GetTradeStatus](https://learn.microsoft.com/en-us/rest/api/services/playfab/client/trading/get-trade-status?view=playfab-rest\&preserve-view=true) 获取已有交易的当前状态。
* [GetWindowsHelloChallenge](/services/playfab/identity/player-identity/platform-specific-authentication/uwp) 向服务器请求一个由 Windows Hello Passport 服务签名的质询以进行身份验证。

## Data API

* [GetFiles](https://learn.microsoft.com/en-us/rest/api/services/playfab/data/file/get-files?view=playfab-rest\&preserve-view=true) 从实体的配置文件中检索文件元数据。

## Server API

* [GetContentDownloadUrl](https://learn.microsoft.com/en-us/rest/api/services/playfab/server/content/get-content-download-url?view=playfab-rest\&preserve-view=true) 此 API 检索用于访问该标题下内容文件的预签名 URL。随后对返回的 URL 发起 HTTP GET 请求将尝试下载该内容。使用 HEAD 查询该 URL 则会尝试检索内容的元数据。请注意，成功返回结果并不保证内容一定存在——如果尚未上传，则获取数据的查询将失败。另请注意，Content 服务专指 PlayFab 的 CDN 产品，因此按标准 CDN 费率计费。
* [GetTitleNews](https://learn.microsoft.com/en-us/rest/api/services/playfab/server/title-wide-data-management/get-title-news?view=playfab-rest\&preserve-view=true) 检索开发者门户中所配置的标题新闻源。
* [SendCustomAccountRecoveryEmail](https://learn.microsoft.com/en-us/rest/api/services/playfab/server/account-management/send-custom-account-recovery-email?view=playfab-rest\&preserve-view=true) 基于账户恢复邮件模板向用户账户上注册的联系邮箱强制发送一封电子邮件。
* [SendEmailFromTemplate](https://learn.microsoft.com/en-us/rest/api/services/playfab/server/account-management/send-email-from-template?view=playfab-rest\&preserve-view=true) 基于邮件模板向玩家的联系邮箱发送电子邮件。
* [SendPushNotification](https://learn.microsoft.com/en-us/rest/api/services/playfab/server/account-management/send-push-notification?view=playfab-rest\&preserve-view=true) 若用户的设备已在 PlayFab 中配置为接收推送通知，则向该特定用户发送 iOS/Android 推送通知。如果用户同时关联了 Android 和 iOS 设备，则两者都会收到通知。
* [SendPushNotificationFromTemplate](https://learn.microsoft.com/en-us/rest/api/services/playfab/server/account-management/send-push-notification-from-template?view=playfab-rest\&preserve-view=true) 若用户的设备已在 PlayFab 中配置为接收推送通知，则基于推送通知模板向该特定用户发送 iOS/Android 推送通知。如果用户同时关联了 Android 和 iOS 设备，则两者都会收到通知。


## Related topics

- [内容与配置写入计量 API 说明](/zh-CN/services/playfab/pricing/meters/file-writes.md)
- [配置文件读取计量 API 说明](/zh-CN/services/playfab/pricing/meters/profile-reads.md)
- [库存读取计量表 API 说明](/zh-CN/services/playfab/pricing/meters/economy-reads.md)
- [统计信息计量](/zh-CN/services/playfab/pricing/meters/statistics-meters.md)
- [PlayFab 消费最佳做法](/zh-CN/services/playfab/pricing/consumption-best-practices.md)
