Lennard Brinkhaus
31bd0cf639
Co-authored-by: Fenpaws <soxx@fenpa.ws> Reviewed-on: anthrove/e621-to-graph#13 Reviewed-by: SoXX <fenpaws@noreply.localhost> Co-authored-by: Lennard Brinkhaus <lennard.brinkhaus@noreply.localhost> Co-committed-by: Lennard Brinkhaus <lennard.brinkhaus@noreply.localhost>
14 lines
390 B
Go
14 lines
390 B
Go
package e621
|
|
|
|
import (
|
|
"e621_to_neo4j/e621/models"
|
|
"fmt"
|
|
)
|
|
|
|
// GetUserInfo retrieves the users information from e621 API.
|
|
func (c *Client) GetUserInfo(username string) func() (models.E621User, error) {
|
|
URIPath := fmt.Sprintf("users/%s.json", username)
|
|
e621Task := NewE621ApiTask[models.E621User](URIPath)
|
|
return Schedule[models.E621User](c.scheduler, e621Task, c.username, c.apiKey)
|
|
}
|