> ## 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 會讓內容和設定讀取計量遞增。

內容和設定檔案包括下列項目：實體檔案、動作、規則、排程工作、配對、推播通知、電子郵件和遊戲新聞。內容和設定檔案是一組索引鍵/值組，主要用於遠端管理遊戲的設定。

下列 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 會嘗試下載內容。對傳回之 URL 的 HEAD 查詢會嘗試擷取內容的中繼資料。請注意，成功的結果並不保證此內容存在——如果尚未上傳，擷取資料的查詢將會失敗。此外，請注意，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 快速入門](/zh-TW/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) 傳回遊戲的 base 64 編碼 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](/zh-TW/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 會嘗試下載內容。對傳回之 URL 的 HEAD 查詢會嘗試擷取內容的中繼資料。請注意，成功的結果並不保證此內容存在——如果尚未上傳，擷取資料的查詢將會失敗。此外，請注意，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-TW/services/playfab/pricing/meters/file-writes.md)
- [設定檔讀取計量 API 描述](/zh-TW/services/playfab/pricing/meters/profile-reads.md)
- [定價計量](/zh-TW/services/playfab/pricing/meters/meters.md)
- [PlayFab 用量最佳做法](/zh-TW/services/playfab/pricing/consumption-best-practices.md)
- [物品欄讀取計量 API 描述](/zh-TW/services/playfab/pricing/meters/economy-reads.md)
