Sfoglia il codice sorgente

Merge pull request #81 from iopred/patch-3

Remove the userID param from UserSettings.
Bruce 9 anni fa
parent
commit
166fb1f5b5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      restapi.go

+ 1 - 1
restapi.go

@@ -227,7 +227,7 @@ func (s *Session) UserUpdate(email, password, username, avatar, newPassword stri
 }
 
 // UserSettings returns the settings for a given user
-func (s *Session) UserSettings(userID string) (st *Settings, err error) {
+func (s *Session) UserSettings() (st *Settings, err error) {
 
 	body, err := s.Request("GET", USER_SETTINGS("@me"), nil)
 	err = json.Unmarshal(body, &st)