8000 GitHub - ylem-co/salesforce-client: An API client for Salesforce integration with Ylem
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ylem-co/salesforce-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Salesforce REST client

GitHub branch check runs GitHub go.mod Go version Static Badge Static Badge Static Badge Static Badge

How to use?

First of initiate the client with stateful oauth credentials. E.g., in init

func init() {
	salesforceclient.Initiate(salesforceclient.Config{
		ClientID:     "<your client id>",
		ClientSecret: "<your client secret>",
		RedirectUrl:  "<guess what: redirect url>",
		Scopes:       []string{"api", "chatter_api"},
	})
}

After the grant & token exchange (it's pretty straight forward), create a client and... use it.

sf, _ := salesforceclient.CreateInstance(ctx, token)
_ = sf.CreateCase(request)

About

An API client for Salesforce integration with Ylem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0