Skip to content

Commit

Permalink
Should check for error on init.
Browse files Browse the repository at this point in the history
  • Loading branch information
nimajalali committed Feb 7, 2014
1 parent a436476 commit f4ac69d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Example

import (
"fmt"
"log"

"github.com/nimajalali/go-force/force"
"github.com/nimajalali/go-force/sobjects"
Expand All @@ -33,7 +34,7 @@ Example

func main() {
// Init the force
force.Init(
err := force.Init(
"YOUR-API-VERSION",
"YOUR-CLIENT-ID",
"YOUR-CLIENT-SECRET",
Expand All @@ -42,6 +43,9 @@ Example
"YOUR-SECURITY-TOKEN",
"YOUR-ENVIRONMENT",
)
if err != nil {
log.Fatal(err)
}

someCustomSObject := &SomeCustomSObject{}
err := force.GetSObject("Your-Object-ID", someCustomSObject)
Expand Down

0 comments on commit f4ac69d

Please sign in to comment.