如何在PHP中调用AWS API的GetCostAndUsage

How to call GetCostAndUsage of AWS API In PHP

GetCostAndUsage 检索您帐户的成本和使用指标。

有关 api 的更多信息在此 link https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_GetCostAndUsage.html 中提供。

我不确定如何使用 PHP 进行此调用。 在授权中发送什么以及我需要发送什么凭据。

有人可以通过示例 post 请求指导我。

AWS 文档提供了用于调用 GetCostAndUsage. Also, it explains how to setup credentials for AWS SDK for PHP as well as it provides numerous examples (here and here) 的 SDK,说明如何将其用于各种服务。