

文件 AWS 開發套件範例 GitHub 儲存庫中有更多可用的 [AWS SDK 範例](https://github.com/awsdocs/aws-doc-sdk-examples)。

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用 AWS SDKs AWS Marketplace 協議 API 程式碼範例
<a name="marketplace-agreement_code_examples"></a>

下列程式碼範例示範如何搭配 AWS 軟體開發套件 (SDK) 使用 AWS Marketplace 協議 API。

**其他資源**
+  **[AWS Marketplace 協議 API 賣方指南](https://docs.aws.amazon.com/marketplace/latest/userguide/what-is-marketplace.html)** – AWS Marketplace 協議 API 的詳細資訊。
+ **[AWS Marketplace 協議 API API 參考](https://docs.aws.amazon.com/marketplace-agreements/latest/api-reference/welcome.html)** – 所有可用 AWS Marketplace 協議 API 動作的詳細資訊。
+ **[AWS 開發人員中心](https://aws.amazon.com/developer/code-examples/?awsf.sdk-code-examples-product=product%23)** – 您可以依類別或全文搜尋篩選的程式碼範例。
+ **[AWS SDK 範例](https://github.com/awsdocs/aws-doc-sdk-examples)** – GitHub 儲存庫使用慣用語言的完整程式碼。包含設定和執行程式碼的指示。

**Contents**
+ [協議](marketplace-agreement_code_examples_agreements.md)
  + [取得所有協議 ID](marketplace-agreement_example_marketplace-agreement_GetAllAgreementsIds_section.md)
  + [取得所有協議](marketplace-agreement_example_marketplace-agreement_GetAllAgreements_section.md)
  + [從協議取得客戶 ID](marketplace-agreement_example_marketplace-agreement_GetAgreementCustomer_section.md)
  + [從協議取得財務詳細資訊](marketplace-agreement_example_marketplace-agreement_GetAgreementFinancialDetails_section.md)
  + [從協議取得免費試用詳細資訊](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsFreeTrialDetails_section.md)
  + [取得協議的相關資訊](marketplace-agreement_example_marketplace-agreement_DescribeAgreement_section.md)
  + [從協議取得產品和優惠詳細資訊](marketplace-agreement_example_marketplace-agreement_GetProductAndOfferDetailFromAgreement_section.md)
  + [取得協議的 EULA](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsEula_section.md)
  + [取得協議的自動續約條款](marketplace-agreement_example_marketplace-agreement_GetAgreementAutoRenewal_section.md)
  + [取得協議中購買的維度](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsDimensionPurchased_section.md)
  + [取得協議中購買的每個維度的執行個體](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsDimensionInstances_section.md)
  + [取得協議的付費排程](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsPaymentSchedule_section.md)
  + [取得協議中每個維度的定價](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsPricingEachDimension_section.md)
  + [取得協議的定價類型](marketplace-agreement_example_marketplace-agreement_GetAgreementPricingType_section.md)
  + [取得協議的產品類型](marketplace-agreement_example_marketplace-agreement_GetAgreementProductType_section.md)
  + [取得協議的狀態](marketplace-agreement_example_marketplace-agreement_GetAgreementStatus_section.md)
  + [取得協議的支援條款](marketplace-agreement_example_marketplace-agreement_GetAgreementTermsSupportTerm_section.md)
  + [取得協議的條款](marketplace-agreement_example_marketplace-agreement_GetAgreementTerms_section.md)
  + [依帳戶 ID 搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByAccountId_section.md)
  + [依協議 ID 搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsById_section.md)
  + [依結束日期搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByEndDate_section.md)
  + [依優惠 ID 搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByOfferId_section.md)
  + [依產品 ID 搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByProductId_section.md)
  + [依狀態搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByByStatus_section.md)
  + [依照一個自訂篩選條件搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByOneFilter_section.md)
  + [依照兩個自訂篩選條件搜尋協議](marketplace-agreement_example_marketplace-agreement_SearchAgreementsByTwoFilters_section.md)