mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add more account and profile endpoints
This commit is contained in:
parent
cee3410532
commit
715ade831c
2 changed files with 117 additions and 3 deletions
|
|
@ -931,7 +931,9 @@ func (c *Crunchyroll) Account() (*Account, error) {
|
|||
}
|
||||
defer resp.Body.Close()
|
||||
|
||||
account := &Account{}
|
||||
account := &Account{
|
||||
crunchy: c,
|
||||
}
|
||||
|
||||
if err = json.NewDecoder(resp.Body).Decode(&account); err != nil {
|
||||
return nil, fmt.Errorf("failed to parse 'me' response: %w", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue