This is a golang
library for interfacing with Salesforce
APIs.
To start using go-sfdc, install GO and run go get
go get github.com/namely/go-sfdc/v3
This will retrieve the library.
To use this library, the following will need to be done.
- Create
Salesforce
credentials to properly authenticate with theSalesforce org
- Configure
- Open a session
- Use the
APIs
The configuration defines several parameters that can be used by the library. The configuration is used per session.
Credentials
- this is an implementation of thecredentials.Provider
interfaceClient
- the HTTP client used by theAPIs
Version
- is theSalesforce
version. Please refer toSalesforce
documentation to make sure thatAPIs
are supported in the version that is specified.
package main
import (
"github.com/namely/go-sfdc/v3"
"github.com/namely/go-sfdc/v3/credentials"
)
var config = sfdc.Configuration{
Credentials: credentials.NewPasswordCredentials(creds),
Client: salesforceHTTPClient,
Version: 44,
}
GO-SFDC source code is available under the MIT License