Skip to content

Commit bd34d83

Browse files
committed
Updated all API URLs to the correct URL since the site was updated apparently
1 parent 7f839cd commit bd34d83

8 files changed

Lines changed: 30 additions & 30 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ postRes, mfaRes, err := client.AuthAddUser("plaid_test", "plaid_good", "", "bofa
2424
if err != nil {
2525
fmt.Println(err)
2626
} else if mfaRes != nil {
27-
// Need to switch on different MFA types. See https://plaid.com/docs/#mfa-auth.
27+
// Need to switch on different MFA types. See https://plaid.com/docs/api/#mfa-auth.
2828
switch mfaRes.Type {
2929
case "device":
3030
fmt.Println("--Device MFA--")

plaid/auth.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
// AuthAddUser (POST /auth) submits a set of user credentials to add an Auth user.
99
//
10-
// See https://plaid.com/docs/#add-auth-user.
10+
// See https://plaid.com/docs/api/#add-auth-user.
1111
func (c *Client) AuthAddUser(username, password, pin, institutionType string,
1212
options *AuthOptions) (postRes *postResponse, mfaRes *mfaResponse, err error) {
1313

@@ -29,7 +29,7 @@ func (c *Client) AuthAddUser(username, password, pin, institutionType string,
2929
// AuthStepSendMethod (POST /auth/step) specifies a particular send method for MFA,
3030
// e.g. `{"mask":"xxx-xxx-5309"}`.
3131
//
32-
// See https://plaid.com/docs/#mfa-auth.
32+
// See https://plaid.com/docs/api/#auth-mfa.
3333
func (c *Client) AuthStepSendMethod(accessToken, key, value string) (postRes *postResponse,
3434
mfaRes *mfaResponse, err error) {
3535

@@ -48,7 +48,7 @@ func (c *Client) AuthStepSendMethod(accessToken, key, value string) (postRes *po
4848

4949
// AuthStep (POST /auth/step) submits an MFA answer for a given access token.
5050
//
51-
// See https://plaid.com/docs/#mfa-auth.
51+
// See https://plaid.com/docs/api/#auth-mfa.
5252
func (c *Client) AuthStep(accessToken, answer string) (postRes *postResponse,
5353
mfaRes *mfaResponse, err error) {
5454

@@ -66,7 +66,7 @@ func (c *Client) AuthStep(accessToken, answer string) (postRes *postResponse,
6666

6767
// AuthGet (POST /auth/get) retrieves account data for a given access token.
6868
//
69-
// See https://plaid.com/docs/#retrieve-data.
69+
// See https://plaid.com/docs/api/#get-auth-data.
7070
func (c *Client) AuthGet(accessToken string) (postRes *postResponse, err error) {
7171
jsonText, err := json.Marshal(authGetJson{
7272
c.clientID,
@@ -83,7 +83,7 @@ func (c *Client) AuthGet(accessToken string) (postRes *postResponse, err error)
8383

8484
// AuthUpdate (PATCH /auth) updates user credentials for a given access token.
8585
//
86-
// See https://plaid.com/docs/#update-auth-user.
86+
// See https://plaid.com/docs/api/#update-auth-user.
8787
func (c *Client) AuthUpdate(username, password, pin, accessToken string) (postRes *postResponse,
8888
mfaRes *mfaResponse, err error) {
8989

@@ -103,7 +103,7 @@ func (c *Client) AuthUpdate(username, password, pin, accessToken string) (postRe
103103

104104
// AuthUpdateStep (PATCH /auth/step) updates user credentials and MFA for a given access token.
105105
//
106-
// See https://plaid.com/docs/#update-auth-user.
106+
// See https://plaid.com/docs/api/#update-auth-user.
107107
func (c *Client) AuthUpdateStep(username, password, pin, mfa, accessToken string) (postRes *postResponse,
108108
mfaRes *mfaResponse, err error) {
109109

@@ -124,7 +124,7 @@ func (c *Client) AuthUpdateStep(username, password, pin, mfa, accessToken string
124124

125125
// AuthDelete (DELETE /auth) deletes data for a given access token.
126126
//
127-
// See https://plaid.com/docs/#delete-auth-user.
127+
// See https://plaid.com/docs/api/#delete-auth-user.
128128
func (c *Client) AuthDelete(accessToken string) (deleteRes *deleteResponse, err error) {
129129
jsonText, err := json.Marshal(authDeleteJson{
130130
c.clientID,
@@ -139,7 +139,7 @@ func (c *Client) AuthDelete(accessToken string) (deleteRes *deleteResponse, err
139139

140140
// AuthOptions represents options associated with adding an Auth user.
141141
//
142-
// See https://plaid.com/docs/#add-auth-user.
142+
// See https://plaid.com/docs/api/#add-auth-user.
143143
type AuthOptions struct {
144144
List bool `json:"list"`
145145
}

plaid/balance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
// Balance (POST /balance) retrieves real-time balance for a given access token.
99
//
10-
// See https://plaid.com/docs/#balance.
10+
// See https://plaid.com/docs/api/#balance.
1111
func (c *Client) Balance(accessToken string) (postRes *postResponse, err error) {
1212
jsonText, err := json.Marshal(balanceJson{
1313
c.clientID,

plaid/categories.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package plaid
22

33
// GetCategories returns information for all categories.
4-
// See https://plaid.com/docs/#all-categories.
4+
// See https://plaid.com/docs/api/#category-overview.
55
func GetCategories(environment environmentURL) (categories []category, err error) {
66
err = getAndUnmarshal(environment, "/categories", &categories)
77
return
88
}
99

1010
// GetCategory returns information for a single category given an ID.
11-
// See https://plaid.com/docs/#categories-by-id.
11+
// See https://plaid.com/docs/api/#categories-by-id.
1212
func GetCategory(environment environmentURL, id string) (cat category, err error) {
1313
err = getAndUnmarshal(environment, "/categories/"+id, &cat)
1414
return

plaid/connect.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
// ConnectAddUser (POST /connect) submits a set of user credentials to add a Connect user.
99
//
10-
// See https://plaid.com/docs/#add-user.
10+
// See https://plaid.com/docs/api/#add-user.
1111
func (c *Client) ConnectAddUser(username, password, pin, institutionType string,
1212
options *ConnectOptions) (postRes *postResponse, mfaRes *mfaResponse, err error) {
1313

@@ -29,7 +29,7 @@ func (c *Client) ConnectAddUser(username, password, pin, institutionType string,
2929
// ConnectStepSendMethod (POST /connect/step) specifies a particular send method for MFA,
3030
// e.g. `{"mask":"xxx-xxx-5309"}`.
3131
//
32-
// See https://plaid.com/docs/#mfa-authentication.
32+
// See https://plaid.com/docs/api/#mfa-authentication.
3333
func (c *Client) ConnectStepSendMethod(accessToken, key, value string) (postRes *postResponse,
3434
mfaRes *mfaResponse, err error) {
3535

@@ -48,7 +48,7 @@ func (c *Client) ConnectStepSendMethod(accessToken, key, value string) (postRes
4848

4949
// ConnectStep (POST /connect/step) submits an MFA answer for a given access token.
5050
//
51-
// See https://plaid.com/docs/#mfa-authentication.
51+
// See https://plaid.com/docs/api/#mfa-authentication.
5252
func (c *Client) ConnectStep(accessToken, answer string) (postRes *postResponse,
5353
mfaRes *mfaResponse, err error) {
5454

@@ -66,7 +66,7 @@ func (c *Client) ConnectStep(accessToken, answer string) (postRes *postResponse,
6666

6767
// ConnectGet (POST /connect/get) retrieves account and transaction data for a given access token.
6868
//
69-
// See https://plaid.com/docs/#retrieve-transactions.
69+
// See https://plaid.com/docs/api/#get-transactions.
7070
func (c *Client) ConnectGet(accessToken string, options *ConnectGetOptions) (postRes *postResponse,
7171
mfaRes *mfaResponse, err error) {
7272

@@ -84,7 +84,7 @@ func (c *Client) ConnectGet(accessToken string, options *ConnectGetOptions) (pos
8484

8585
// ConnectUpdate (PATCH /connect) updates user credentials for a given access token.
8686
//
87-
// See https://plaid.com/docs/#update-user.
87+
// See https://plaid.com/docs/api/#update-user.
8888
func (c *Client) ConnectUpdate(username, password, pin, accessToken string) (postRes *postResponse,
8989
mfaRes *mfaResponse, err error) {
9090

@@ -104,7 +104,7 @@ func (c *Client) ConnectUpdate(username, password, pin, accessToken string) (pos
104104

105105
// ConnectUpdateStep (PATCH /connect/step) updates user credentials and MFA for a given access token.
106106
//
107-
// See https://plaid.com/docs/#update-user.
107+
// See https://plaid.com/docs/api/#update-user.
108108
func (c *Client) ConnectUpdateStep(username, password, pin, mfa, accessToken string) (postRes *postResponse,
109109
mfaRes *mfaResponse, err error) {
110110

@@ -125,7 +125,7 @@ func (c *Client) ConnectUpdateStep(username, password, pin, mfa, accessToken str
125125

126126
// ConnectDelete (DELETE /connect) deletes data for a given access token.
127127
//
128-
// See https://plaid.com/docs/#delete-user.
128+
// See https://plaid.com/docs/api/#delete-user.
129129
func (c *Client) ConnectDelete(accessToken string) (deleteRes *deleteResponse, err error) {
130130
jsonText, err := json.Marshal(connectDeleteJson{
131131
c.clientID,
@@ -140,7 +140,7 @@ func (c *Client) ConnectDelete(accessToken string) (deleteRes *deleteResponse, e
140140

141141
// ConnectOptions represents options associated with adding an Connect user.
142142
//
143-
// See https://plaid.com/docs/#add-user.
143+
// See https://plaid.com/docs/api/#add-user.
144144
type ConnectOptions struct {
145145
Webhook string `json:"webhook,omitempty"`
146146
Pending bool `json:"pending,omitempty"`
@@ -180,7 +180,7 @@ type connectStepJson struct {
180180

181181
// ConnectGetOptions represents options associated with retrieving a Connect user.
182182
//
183-
// See https://plaid.com/docs/#retrieve-transactions.
183+
// See https://plaid.com/docs/api/#retrieve-transactions.
184184
type ConnectGetOptions struct {
185185
Pending bool `json:"pending,omitempty"`
186186
Account string `json:"account,omitempty"`

plaid/institutions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package plaid
22

33
// GetInstitution returns information for a single institution given an ID.
4-
// See https://plaid.com/docs/#institutions-by-id.
4+
// See https://plaid.com/docs/api/#institutions-by-id.
55
func GetInstitution(environment environmentURL, id string) (inst institution, err error) {
66
err = getAndUnmarshal(environment, "/institutions/"+id, &inst)
77
return
88
}
99

1010
// GetInstitution returns information for all institutions.
11-
// See https://plaid.com/docs/#all-institutions.
11+
// See https://plaid.com/docs/api/#all-institutions.
1212
func GetInstitutions(environment environmentURL) (institutions []institution, err error) {
1313
err = getAndUnmarshal(environment, "/institutions", &institutions)
1414
return

plaid/plaid.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
// NewClient instantiates a Client associated with a client id, secret and environment.
13-
// See https://plaid.com/docs/#gaining-access.
13+
// See https://plaid.com/docs/api/#gaining-access.
1414
func NewClient(clientID, secret string, environment environmentURL) *Client {
1515
return &Client{clientID, secret, environment, &http.Client{}}
1616
}

plaid/upgrade.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
// Upgrade (POST /upgrade) upgrades an access token to an additional product.
99
//
10-
// See https://plaid.com/docs/#upgrade-user.
10+
// See https://plaid.com/docs/api/#upgrade-user.
1111
func (c *Client) Upgrade(accessToken, upgradeTo string,
1212
options *UpgradeOptions) (postRes *postResponse, mfaRes *mfaResponse, err error) {
1313

@@ -27,7 +27,7 @@ func (c *Client) Upgrade(accessToken, upgradeTo string,
2727
// UpgradeStepSendMethod (POST /upgrade/step) specifies a particular send method for MFA,
2828
// e.g. {"mask":"xxx-xxx-5309"}.
2929
//
30-
// See https://plaid.com/docs/#upgrade-user.
30+
// See https://plaid.com/docs/api/#upgrade-user.
3131
func (c *Client) UpgradeStepSendMethod(accessToken, key, value string) (postRes *postResponse,
3232
mfaRes *mfaResponse, err error) {
3333

@@ -46,8 +46,8 @@ func (c *Client) UpgradeStepSendMethod(accessToken, key, value string) (postRes
4646

4747
// UpgradeStep (POST /upgrade/step) submits an MFA answer for a given access token.
4848
//
49-
// See https://plaid.com/docs/#mfa-authentication for upgrades to Connect.
50-
// See https://plaid.com/docs/#mfa-auth for upgrades to Auth.
49+
// See https://plaid.com/docs/api/#mfa-authentication for upgrades to Connect.
50+
// See https://plaid.com/docs/api/#mfa-auth for upgrades to Auth.
5151
func (c *Client) UpgradeStep(accessToken, answer string) (postRes *postResponse,
5252
mfaRes *mfaResponse, err error) {
5353

@@ -65,8 +65,8 @@ func (c *Client) UpgradeStep(accessToken, answer string) (postRes *postResponse,
6565

6666
// UpgradeOptions represents options associated with upgrading a user.
6767
//
68-
// See https://plaid.com/docs/#add-user for upgrades to Connect.
69-
// See https://plaid.com/docs/#add-auth-user for upgrades to Auth.
68+
// See https://plaid.com/docs/api/#add-user for upgrades to Connect.
69+
// See https://plaid.com/docs/api/#add-auth-user for upgrades to Auth.
7070
type UpgradeOptions struct {
7171
Webhook string `json:"webhook,omitempty"`
7272
}

0 commit comments

Comments
 (0)