Code Examples
In addition to the quick-start examples, the Pub/Sub API GitHub repository contains additional code examples in various programming languages so that you can learn how to use Pub/Sub API in those languages.
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 and the java folder 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 but aren't officially supported.
The Go code examples 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.
For code examples that the developer community created, see the Code Samples from the Developer Community section in the Pub/Sub API GitHub repository. Salesforce doesn’t support these examples, so use them at your own discretion.
See Also