Documentation ¶
Index ¶
- Constants
- Variables
- func NewClientPassword(oc goauth.CredentialsOAuth2) (*http.Client, error)
- func NewClientPasswordSalesforceEnv() (*http.Client, error)
- type OAuth2Credentials
- type SalesforceClient
- 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
- type User
Constants ¶
View Source
const ( AuthzURL = endpoints.SalesforceAuthzURL TokenURL = endpoints.SalesforceTokenURL // #nosec G101 RevokeURL = endpoints.SalesforceRevokeURL ServerURLFormat = "https://%v.salesforce.com" HostFormat = "%v.salesforce.com" TestServerURL = "https://test.salesforce.com" )
Variables ¶
Functions ¶
func NewClientPassword ¶
func NewClientPassword(oc goauth.CredentialsOAuth2) (*http.Client, error)
Types ¶
type OAuth2Credentials ¶
type OAuth2Credentials struct { goauth.CredentialsOAuth2 InstanceName string }
type SalesforceClient ¶
type SalesforceClient struct { ClientMore httputilmore.ClientMore URLBuilder URLBuilder }
func NewSalesforceClient ¶
func NewSalesforceClient(client *http.Client, instanceName string) SalesforceClient
func NewSalesforceClientEnv ¶
func NewSalesforceClientEnv() (SalesforceClient, error)
func NewSalesforceClientPassword ¶
func NewSalesforceClientPassword(soc OAuth2Credentials) (SalesforceClient, error)
func (*SalesforceClient) CreateContact ¶
func (sc *SalesforceClient) CreateContact(contact interface{}) (*http.Response, error)
func (*SalesforceClient) CreateSobject ¶
func (sc *SalesforceClient) CreateSobject(sobjectName string, sobject interface{}) (*http.Response, error)
func (*SalesforceClient) DeleteAccount ¶
func (sc *SalesforceClient) DeleteAccount(id string) (*http.Response, error)
func (*SalesforceClient) DeleteAccountsAll ¶
func (sc *SalesforceClient) DeleteAccountsAll() error
func (*SalesforceClient) DeleteContact ¶
func (sc *SalesforceClient) DeleteContact(id string) (*http.Response, error)
func (*SalesforceClient) DeleteContactsAll ¶
func (sc *SalesforceClient) DeleteContactsAll() error
func (*SalesforceClient) ExecSOQL ¶
func (sc *SalesforceClient) ExecSOQL(soql string) (*http.Response, error)
func (*SalesforceClient) GetAccountsAll ¶
func (sc *SalesforceClient) GetAccountsAll() (sobjects.AccountSet, error)
func (*SalesforceClient) GetContactsAll ¶
func (sc *SalesforceClient) GetContactsAll() (sobjects.ContactSet, error)
func (*SalesforceClient) GetServicesData ¶
func (sc *SalesforceClient) GetServicesData() (*http.Response, error)
func (*SalesforceClient) UserInfo ¶
func (sc *SalesforceClient) UserInfo() (User, error)
type URLBuilder ¶
func NewURLBuilder ¶
func NewURLBuilder(instanceName string) URLBuilder
func (*URLBuilder) BuildSobjectURL ¶
func (b *URLBuilder) BuildSobjectURL(parts ...string) url.URL
Click to show internal directories.
Click to hide internal directories.