

 AWS 合作伙伴中心 API 参考已重新构建。有关支持的 API 操作的更多信息，请参阅 [AWS 合作伙伴中心 API 参考](https://docs.aws.amazon.com/partner-central/latest/APIReference/Welcome.html)。

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 合作伙伴中心使用的代码示例AWS软件开发工具包
<a name="service_code_examples"></a>

以下代码示例展示了如何将合作伙伴中心与AWS软件开发套件 (SDK) 配合使用。

*操作*是大型程序的代码摘录，必须在上下文中运行。您可以通过操作了解如何调用单个服务函数，还可以通过函数相关场景的上下文查看操作。

*场景*是向您展示如何通过在一个服务中调用多个函数或与其他AWS 服务服务结合来完成特定任务的代码示例。

有关 S AWS DK 开发者指南和代码示例的完整列表，请参阅[使用AWS合作伙伴中心 API，其中包含AWS SDK](sdk-general-information-section.md)。本主题还包括有关入门的信息以及有关先前的 SDK 版本的详细信息。

**Contents**
+ [基本功能](service_code_examples_basics.md)
  + [操作](service_code_examples_actions.md)
    + [`AssignOpportunity`](example_partnercentral-selling_AssignOpportunity_section.md)
    + [`AssociateOpportunity`](example_partnercentral-selling_AssociateOpportunity_section.md)
    + [`CreateOpportunity`](example_partnercentral-selling_CreateOpportunity_section.md)
    + [`DisassociateOpportunity`](example_partnercentral-selling_DisassociateOpportunity_section.md)
    + [`GetAwsOpportunitySummary`](example_partnercentral-selling_GetAwsOpportunitySummary_section.md)
    + [`GetEngagementInvitation`](example_partnercentral-selling_GetEngagementInvitation_section.md)
    + [`GetOpportunity`](example_partnercentral-selling_GetOpportunity_section.md)
    + [`ListEngagementInvitations`](example_partnercentral-selling_ListEngagementInvitations_section.md)
    + [`ListOpportunities`](example_partnercentral-selling_ListOpportunities_section.md)
    + [`ListSolutions`](example_partnercentral-selling_ListSolutions_section.md)
    + [`RejectEngagementInvitation`](example_partnercentral-selling_RejectEngagementInvitation_section.md)
    + [`StartEngagementByAcceptingInvitationTask`](example_partnercentral-selling_StartEngagementByAcceptingInvitationTask_section.md)
    + [`StartEngagementFromOpportunityTask`](example_partnercentral-selling_StartEngagementFromOpportunityTask_section.md)
    + [`UpdateOpportunity`](example_partnercentral-selling_UpdateOpportunity_section.md)
+ [场景](service_code_examples_scenarios.md)
  + [更新机会的关联实体](example_partnercentral-selling__UpdateAssociatedEntity_section.md)