diff --git a/discovery.go b/discovery.go index c7d18fe..434666f 100644 --- a/discovery.go +++ b/discovery.go @@ -9,7 +9,6 @@ import ( // Call the discovery API. // See https://developer.intuit.com/app/developer/qbo/docs/develop/authentication-and-authorization/openid-connect#discovery-document -// func CallDiscoveryAPI(discoveryEndpoint EndpointURL) *DiscoveryAPI { log.Println("Entering CallDiscoveryAPI ") client := &http.Client{} diff --git a/examples/auth_flow_test.go b/examples/auth_flow_test.go index 225533b..691131f 100644 --- a/examples/auth_flow_test.go +++ b/examples/auth_flow_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/neonmoose/quickbooks-go" + "github.com/justworkshr/quickbooks-go" "github.com/stretchr/testify/require" ) diff --git a/examples/reuse_token_test.go b/examples/reuse_token_test.go index c73e960..a684121 100644 --- a/examples/reuse_token_test.go +++ b/examples/reuse_token_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/neonmoose/quickbooks-go" + "github.com/justworkshr/quickbooks-go" "github.com/stretchr/testify/require" ) diff --git a/go.mod b/go.mod index b07ed7f..bf8a7eb 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/neonmoose/quickbooks-go +module github.com/justworkshr/quickbooks-go go 1.18 diff --git a/token.go b/token.go index 45105d9..d55842d 100644 --- a/token.go +++ b/token.go @@ -22,10 +22,8 @@ type BearerToken struct { XRefreshTokenExpiresIn int64 `json:"x_refresh_token_expires_in"` } -// // Method to retrieve access token (bearer token) // This method can only be called once -// func (c *Client) RetrieveBearerToken(authorizationCode string, redirectURI string) (*BearerToken, error) { client := &http.Client{} data := url.Values{} @@ -62,9 +60,7 @@ func (c *Client) RetrieveBearerToken(authorizationCode string, redirectURI strin return bearerTokenResponse, err } -// // Call the refresh endpoint to generate new tokens -// func (c *Client) RefreshToken(refreshToken string) (*BearerToken, error) { client := &http.Client{} data := url.Values{} @@ -102,9 +98,7 @@ func (c *Client) RefreshToken(refreshToken string) (*BearerToken, error) { return bearerTokenResponse, err } -// // Call the revoke endpoint to revoke tokens -// func (c *Client) RevokeToken(refreshToken string) error { client := &http.Client{} data := url.Values{}