package e621 import ( "e621_to_neo4j/e621/models" "fmt" log "github.com/sirupsen/logrus" ) // GetUserInfo retrieves the users information from e621 API. func (c *Client) GetUserInfo(username string) (models.E621User, error) { URIPath := fmt.Sprintf("users/%s.json", username) log.WithFields(log.Fields{ "username": username, "uri": URIPath, }).Debug("Requesting API for user details") user, err := ExecuteGetAPIRequest[models.E621User](c, URIPath) if err != nil { return models.E621User{}, err } return *user, nil }