salesforce

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (*StaticTokenAuthenticator) RoundTrip

func (t *StaticTokenAuthenticator) RoundTrip(request *http.Request) (*http.Response, error)

RoundTrip implements the RoundTripper interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL