Versions in this module Expand all Collapse all v0 v0.18.2 Jun 9, 2023 Changes in this version + const AuthzURL + const HostFormat + const RevokeURL + const ServerURLFormat + const TestServerURL + const TokenURL + var Endpoint = oauth2.Endpoint + func NewClientPassword(oc goauth.CredentialsOAuth2) (*http.Client, error) + func NewClientPasswordSalesforceEnv() (*http.Client, error) + type OAuth2Credentials struct + InstanceName string + type SalesforceClient struct + ClientMore httputilmore.ClientMore + URLBuilder URLBuilder + func NewSalesforceClient(client *http.Client, instanceName string) SalesforceClient + func NewSalesforceClientEnv() (SalesforceClient, error) + func NewSalesforceClientPassword(soc OAuth2Credentials) (SalesforceClient, error) + func (sc *SalesforceClient) CreateContact(contact interface{}) (*http.Response, error) + func (sc *SalesforceClient) CreateSobject(sobjectName string, sobject interface{}) (*http.Response, error) + func (sc *SalesforceClient) DeleteAccount(id string) (*http.Response, error) + func (sc *SalesforceClient) DeleteAccountsAll() error + func (sc *SalesforceClient) DeleteContact(id string) (*http.Response, error) + func (sc *SalesforceClient) DeleteContactsAll() error + func (sc *SalesforceClient) ExecSOQL(soql string) (*http.Response, error) + func (sc *SalesforceClient) GetAccountsAll() (sobjects.AccountSet, error) + func (sc *SalesforceClient) GetContactsAll() (sobjects.ContactSet, error) + func (sc *SalesforceClient) GetServicesData() (*http.Response, error) + func (sc *SalesforceClient) UserInfo() (User, error) + type URLBuilder struct + BaseURL url.URL + Version string + func NewURLBuilder(instanceName string) URLBuilder + func (b *URLBuilder) Build(path string) url.URL + func (b *URLBuilder) BuildSobjectURL(parts ...string) url.URL + type User struct + OrganizationID string + UserID string