diff --git a/example/highlevel/favorites.go b/example/highlevel/favorites.go index 4e87698..f41037b 100644 --- a/example/highlevel/favorites.go +++ b/example/highlevel/favorites.go @@ -8,7 +8,7 @@ import ( ) func main() { - client := e621.NewE621Client(os.Getenv("API_USER"), os.Getenv("API_KEY")) + client := e621.NewClient(os.Getenv("API_USER"), os.Getenv("API_KEY")) { favorites, err := client.GetFavoritesForUser("selloo") if err != nil { diff --git a/example/highlevel/post.go b/example/highlevel/post.go index 5ec235d..bf79a1e 100644 --- a/example/highlevel/post.go +++ b/example/highlevel/post.go @@ -8,7 +8,7 @@ import ( ) func main() { - client := e621.NewE621Client(os.Getenv("API_USER"), os.Getenv("API_KEY")) + client := e621.NewClient(os.Getenv("API_USER"), os.Getenv("API_KEY")) posts, err := client.GetPosts().Execute() if err != nil { diff --git a/example/highlevel/user.go b/example/highlevel/user.go index dab136e..d2527c0 100644 --- a/example/highlevel/user.go +++ b/example/highlevel/user.go @@ -8,7 +8,7 @@ import ( ) func main() { - client := e621.NewE621Client(os.Getenv("API_USER"), os.Getenv("API_KEY")) + client := e621.NewClient(os.Getenv("API_USER"), os.Getenv("API_KEY")) user, err := client.GetUserByName("selloo").Execute() if err != nil { log.Panic(err) diff --git a/pkg/e621/client.go b/pkg/e621/client.go index 987bcf0..88911b6 100644 --- a/pkg/e621/client.go +++ b/pkg/e621/client.go @@ -17,8 +17,8 @@ type Client struct { RequestContext model.RequestContext } -// NewE621Client creates a new e621 client with the provided username and API key. -func NewE621Client(username string, apiKey string) Client { +// NewClient creates a new e621 client with the provided username and API key. +func NewClient(username string, apiKey string) Client { // Create a new e621 client with the given username and API key. return Client{ RequestContext: model.RequestContext{