Add more account and profile endpoints

This commit is contained in:
bytedream 2022-06-20 10:22:17 +02:00
parent cee3410532
commit 715ade831c
2 changed files with 117 additions and 3 deletions

View file

@ -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)