---
schema_version: "1"
id: cdc53985a75f78ff748f0794284fd2c705e33daa020c69c19983e86e7e225dfb
title: Code Examples
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/event-bus/pub-sub-api/guides/other-code-examples.md
canonical_url: https://developer.salesforce.com/docs/platform/pub-sub-api/guide/other-code-examples.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9aa4cc62e3bab0ea0fdf875c86814d9297ab00e6c63a6cc671cb9846081bbfa3
products:
  - Pub/Sub API
  - Event Bus Docs
---
# Code Examples

In addition to the quick-start examples, the [Pub/Sub API GitHub repository](https://github.com/forcedotcom/pub-sub-api) contains additional code examples in various programming languages so that you can learn how to use Pub/Sub API in those languages.

**note:** Even though Pub/Sub API supports multiple programming languages through the gRPC API, we’re committed to officially support the Java code samples. Use the Java code samples to learn how to implement Pub/Sub API. Before you deploy the code to production, perform enhancements and thorough functional and performance testing. See [Java Quick Start](https://developer.salesforce.com/docs/platform/pub-sub-api/guide/qs-java-quick-start-parent.md) and the [java folder](https://github.com/forcedotcom/pub-sub-api/tree/main/java) in the Pub/Sub API GitHub repository. Samples in other programming languages are provided in this guide and in the [Pub/Sub API GitHub repository](https://github.com/forcedotcom/pub-sub-api) but aren't officially supported.

## Go Code Examples

The [Go code examples](https://github.com/forcedotcom/pub-sub-api/tree/main/go) are a collection of code examples in the Go programming language for each RPC method call. The Go examples use OAuth for authorization. You can use these examples to learn how to implement Pub/Sub API in Go.

## Community-Provided Code Examples

For code examples that the developer community created, see the [Code Samples from the Developer Community](https://github.com/forcedotcom/pub-sub-api#code-samples-from-the-developer-community) section in the [Pub/Sub API GitHub repository](https://github.com/forcedotcom/pub-sub-api). Salesforce doesn’t support these examples, so use them at your own discretion.

**See Also**

- [Quick Starts](https://developer.salesforce.com/docs/platform/pub-sub-api/guide/quick-start.md)
