Documentation ¶
Overview ¶
Package salesforce provides a simple way of authenticating with Salesforce.com Bayeux-powered services.
An example usage looks like:
client := gobayeux.NewClient(serverAddress, gobayeux.WithHTTPTransport(salesforce.StaticTokenAuthenticator{myToken, http.DefaultTransport}))
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StaticTokenAuthenticator ¶
type StaticTokenAuthenticator struct { // Token is the string obtained either from the Salesforce CX CLI (for // example). You can also retrieve this by using the curl command on // https://developer.salesforce.com/docs/atlas.en-us.api_iot.meta/api_iot/qs_auth_access_token.htm Token string // Transport is any http transport that satisfies the http.RoundTripper // interface Transport http.RoundTripper // contains filtered or unexported fields }
StaticTokenAuthenticator adds your Salesforce Access Token to your requests
Click to show internal directories.
Click to hide internal directories.