aboutsummaryrefslogtreecommitdiff
path: root/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'user.go')
-rw-r--r--user.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/user.go b/user.go
index 16ca2b8..870c137 100644
--- a/user.go
+++ b/user.go
@@ -20,6 +20,11 @@ package mg
import "encoding/json"
func (c Client) GetSelfInfo(user *User, getStatistics bool) error {
+ if c.ClientAuthOnly {
+ // this endpoint requires main auth
+ return ErrClientAuthNotSupported
+ }
+
endpoint := BASE_URL + "/users/@me"
if getStatistics {
endpoint += "?fields=anime_statistics"