forked from go-packages/paypal
18 lines
323 B
Go
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)
|
|
}
|
|
}
|