Skip to content

Basic Salesforce library for Golang inspired by the excellent Python Simple-Salesforce library. The return type is an interface{} to keep things simple, instead of creating SObjects, etc

License

Notifications You must be signed in to change notification settings

hashbender/gosalesforce

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gosalesforce

Golang Salesforce REST API library. This library is inspired by the excellent "Simple-Salesforce" Python library. Currently only OAuth2 is supported and an interface{} object is returned to keep things simple.

API documentation can be found at the Godoc page

Examples

package main

import (
  "fmt"
  "encoding/json"
  "github.com/tux0010/gosalesforce"
)

func main() {
  instanceURL := "https://na23.salesforce.com"
  sessionID := "deadbeefbeefcafe"
  
  client := NewSalesforceClient(instanceURL, sessionID)
  data, err := client.Get("Someobject__C", "somerecordID")
  if err != nil {
    panic(err)
  }
  
  j, _ := json.MarshalIndent(data, "", " ")
  fmt.Println(string(j))
}

About

Basic Salesforce library for Golang inspired by the excellent Python Simple-Salesforce library. The return type is an interface{} to keep things simple, instead of creating SObjects, etc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%