Documentation
¶
Overview ¶
Package salesforce provides an exported Salesforce client provider backed by the PramithaMJ Salesforce Go SDK v2. Other plugins (e.g. workflow-plugin-crm) can import this package to interact with Salesforce without duplicating authentication or HTTP logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthenticateClientCredentials ¶
func AuthenticateClientCredentials(loginURL, clientID, clientSecret string) (instanceURL, accessToken string, err error)
AuthenticateClientCredentials performs the OAuth 2.0 client_credentials grant flow and returns the instance URL and access token.
Types ¶
type Config ¶
type Config struct {
AuthType string // "oauth_refresh", "password", "client_credentials", "access_token" (or empty to auto-detect)
ClientID string
ClientSecret string
RefreshToken string
Username string
Password string
SecurityToken string
AccessToken string
InstanceURL string
LoginURL string
APIVersion string
Sandbox bool
}
Config holds the configuration for creating a Provider.
Click to show internal directories.
Click to hide internal directories.