Categorygithub.com/ylem-co/salesforce-client
modulepackage
0.0.0-20240906191930-e744b6d02436
Repository: https://github.com/ylem-co/salesforce-client.git
Documentation: pkg.go.dev

# README

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)

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author