Skip to content

Commit

Permalink
Merge pull request #9 from justworkshr/jwhr-mv2
Browse files Browse the repository at this point in the history
jwhr org move
  • Loading branch information
moalam93 authored Sep 12, 2024
2 parents 6d74ccd + bb5708a commit e3796da
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
2 changes: 1 addition & 1 deletion examples/auth_flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/neonmoose/quickbooks-go"
"github.com/justworkshr/quickbooks-go"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/reuse_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

"github.com/neonmoose/quickbooks-go"
"github.com/justworkshr/quickbooks-go"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/neonmoose/quickbooks-go
module github.com/justworkshr/quickbooks-go

go 1.18

Expand Down
6 changes: 0 additions & 6 deletions token.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down Expand Up @@ -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{}
Expand Down Expand Up @@ -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{}
Expand Down

0 comments on commit e3796da

Please sign in to comment.