paypale/example_test.go
2019-03-27 09:27:53 +01:00

18 lines
323 B
Go

package paypalsdk_test
import paypalsdk "github.com/logpacker/PayPal-Go-SDK"
func Example() {
// Initialize client
c, err := paypalsdk.NewClient("clientID", "secretID", paypalsdk.APIBaseSandBox)
if err != nil {
panic(err)
}
// Retrieve access token
_, err = c.GetAccessToken()
if err != nil {
panic(err)
}
}