Python Quick Start for Pub/Sub API
In this quick start, you learn how to build a Pub/Sub API client in Python. The steps walk you through generating the stub files, authenticating to Salesforce, configuring events, writing code to subscribe to events, and writing code to publish events.
The quick start provides enough instructions and code snippets so that you can build your own client. The code example uses username and password authentication for simplicity, but we recommend that you use OAuth in production apps. For more information, see Supported Authentication. You can find full code examples in https://github.com/developerforce/pub-sub-api. The Go code examples use OAuth. The full examples aren’t intended for production use and haven’t undergone thorough functional and performance testing. You can use these examples as a starting point to build your own client.