Skip to content

Commit 5b581b7

Browse files
authored
Merge pull request #107 from ranjanrak/fix-genHolAuthURL
fix: genHolAuthURL auth URL and json tag
2 parents 06945e3 + ac470f7 commit 5b581b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

portfolio.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ type HoldingAuthParams struct {
192192
// HoldingsAuthParams represents the response from initiating holdings authorization
193193
type HoldingsAuthResp struct {
194194
RequestID string `json:"request_id"`
195-
RedirectURL string
195+
RedirectURL string `json:"redirect_url"`
196196
}
197197

198198
// InitiateHoldingsAuth initiates the holdings authorization flow. It accepts an optional
@@ -237,5 +237,5 @@ func (c *Client) InitiateHoldingsAuth(haps HoldingAuthParams) (HoldingsAuthResp,
237237
}
238238

239239
func genHolAuthURL(apiKey, reqID string) string {
240-
return kiteBaseURI + "/connect/portfolio/authorize/holdings/" + apiKey + "/" + reqID
240+
return kiteBaseURI + "/connect/portfolio/authorise/holdings/" + apiKey + "/" + reqID
241241
}

0 commit comments

Comments
 (0)