This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
e621-sdk-go/e621/users.go

14 lines
390 B
Go
Raw Normal View History

2023-05-24 14:05:27 +00:00
package e621
2023-05-22 11:08:08 +00:00
import (
2023-05-24 14:05:27 +00:00
"e621_to_neo4j/e621/models"
2023-05-22 11:08:08 +00:00
"fmt"
)
// GetUserInfo retrieves the users information from e621 API.
func (c *Client) GetUserInfo(username string) func() (models.E621User, error) {
2023-06-17 18:51:04 +00:00
URIPath := fmt.Sprintf("users/%s.json", username)
e621Task := NewE621ApiTask[models.E621User](URIPath)
return Schedule[models.E621User](c.scheduler, e621Task, c.username, c.apiKey)
2023-05-22 11:08:08 +00:00
}