Versions in this module Expand all Collapse all v1 v1.0.1 May 15, 2020 v1.0.0 May 7, 2020 Changes in this version + const BaseQueryString + const SOAP_VERSION + func BuildQuery(fields, table string, constraints []string) string + type ApiError struct + ErrorCode string + ErrorDescription string + ErrorName string + Fields []string + Message string + func (e ApiError) Error() string + func (e ApiError) String() string + func (e ApiError) Validate() bool + type ApiErrors []*ApiError + func (e ApiErrors) Error() string + func (e ApiErrors) String() string + func (e ApiErrors) Validate() bool + type ChildRelationship struct + CascadeDelete bool + ChildSObject string + DeprecatedAndHidden bool + Field string + RelationshipName string + RestrictedDelete bool + type ForceApi struct + func Create(version, clientId, clientSecret, userName, password, securityToken, ... string) (*ForceApi, error) + func CreatePassword(version, baseURI, environment, userName, password string) (*ForceApi, error) + func CreateWithAccessToken(version, clientId, accessToken, instanceUrl string) (*ForceApi, error) + func CreateWithRefreshToken(version, clientId, accessToken, instanceUrl string) (*ForceApi, error) + func (forceAPI *ForceApi) DescribeSObjects() (map[string]*SObjectMetaData, error) + func (forceApi *ForceApi) Delete(path string, params url.Values) error + func (forceApi *ForceApi) DeleteSObject(id string, in SObject) (err error) + func (forceApi *ForceApi) DeleteSObjectByExternalId(id string, in SObject) (err error) + func (forceApi *ForceApi) DescribeSObject(in SObject) (resp *SObjectDescription, err error) + func (forceApi *ForceApi) Get(path string, params url.Values, out interface{}) error + func (forceApi *ForceApi) GetAccessToken() string + func (forceApi *ForceApi) GetInstanceURL() string + func (forceApi *ForceApi) GetLimits() (limits *Limits, err error) + func (forceApi *ForceApi) GetSObject(id string, fields []string, out SObject) (err error) + func (forceApi *ForceApi) GetSObjectByExternalId(id string, fields []string, out SObject) (err error) + func (forceApi *ForceApi) InsertSObject(in SObject) (resp *SObjectResponse, err error) + func (forceApi *ForceApi) Patch(path string, params url.Values, payload, out interface{}) error + func (forceApi *ForceApi) Post(path string, params url.Values, payload, out interface{}) error + func (forceApi *ForceApi) Put(path string, params url.Values, payload, out interface{}) error + func (forceApi *ForceApi) Query(query string, out interface{}) (err error) + func (forceApi *ForceApi) QueryAll(query string, out interface{}) (err error) + func (forceApi *ForceApi) QueryNext(uri string, out interface{}) (err error) + func (forceApi *ForceApi) RefreshToken() error + func (forceApi *ForceApi) TraceOff() + func (forceApi *ForceApi) TraceOn(prefix string, logger ForceApiLogger) + func (forceApi *ForceApi) UpdateSObject(id string, in SObject) (err error) + func (forceApi *ForceApi) UpsertSObjectByExternalId(id string, in SObject) (resp *SObjectResponse, err error) + type ForceApiLogger interface + Printf func(format string, v ...interface{}) + type Limit struct + Max float64 + Remaining float64 + type Limits map[string]Limit + type PicklistValue struct + Active bool + DefaulValue bool + Label string + ValidFor string + Value string + type RecordTypeInfo struct + Available bool + DefaultRecordTypeMapping bool + Name string + RecordTypeId string + URLs map[string]string + type RefreshTokenResponse struct + AccessToken string + ID string + IssuedAt string + Signature string + type SObject interface + APIName func() string + ExternalIdAPIName func() string + type SObjectApiResponse struct + Encoding string + MaxBatchSize int64 + SObjects []*SObjectMetaData + type SObjectDescription struct + Activateable bool + AllFields string + ChildRelationsips []*ChildRelationship + CompactLayoutable bool + Createable bool + Custom bool + CustomSetting bool + Deletable bool + DeprecatedAndHidden bool + FeedEnabled bool + Fields []*SObjectField + KeyPrefix string + Label string + LabelPlural string + Layoutable bool + Listviewable bool + LookupLayoutable bool + Mergeable bool + Name string + Queryable bool + RecordTypeInfos []*RecordTypeInfo + Replicateable bool + Retrievable bool + SearchLayoutable bool + Searchable bool + Triggerable bool + URLs map[string]string + Undeletable bool + Updateable bool + type SObjectField struct + AutoNumber bool + ByteLength float64 + Calculated bool + CalculatedValueFormula string + CascadeDelete bool + CaseSensitive bool + ControllerName string + Createable bool + Custom bool + DefaultValue string + DefaultValueFormula string + DefaultedOnCreate bool + DependentPicklist bool + DeprecatedAndHidden bool + Digits float64 + DisplayLocationInDecimal bool + ExternalId bool + Filterable bool + Groupable bool + HtmlFormatted bool + IdLookup bool + InlineHelpText string + Label string + Length float64 + Name string + NameField bool + NamePointing bool + Nillable bool + Permissionable bool + PicklistValues []*PicklistValue + Precision float64 + ReferenceTo []string + RelationshipName string + RelationshipOrder float64 + RestrictedDelete bool + RestrictedPicklist bool + Scale float64 + SoapType string + Sortable bool + Type string + Unique bool + Updateable bool + WriteRequiresMasterRead bool + type SObjectMetaData struct + Activateable bool + Createable bool + Custom bool + CustomSetting bool + Deletable bool + DeprecatedAndHidden bool + FeedEnabled bool + KeyPrefix string + Label string + LabelPlural string + Layoutable bool + Mergeable bool + Name string + Queryable bool + Replicateable bool + Retrieveable bool + Searchable bool + Triggerable bool + URLs map[string]string + Undeletable bool + Updateable bool + type SObjectResponse struct + Errors ApiErrors + Id string + Success bool