diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/default_client.go | 27 | ||||
-rw-r--r-- | util/structs.go | 2 | ||||
-rw-r--r-- | util/url_generator.go | 2 |
3 files changed, 29 insertions, 2 deletions
diff --git a/util/default_client.go b/util/default_client.go new file mode 100644 index 0000000..da2114f --- /dev/null +++ b/util/default_client.go @@ -0,0 +1,27 @@ +/* MAL2Go - MyAnimeList V2 API wrapper for Go + * Copyright (C) 2022 Vidhu Kant Sharma <vidhukant@protonmail.ch> + + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. */ + +package util + +import ( + "net/http" +) + +// MyAnimeList Client for mal2go/anime package +type DefaultClient struct { + AuthToken, RefreshToken string + HttpClient http.Client +} diff --git a/util/structs.go b/util/structs.go index d242e7f..b17f1f7 100644 --- a/util/structs.go +++ b/util/structs.go @@ -1,4 +1,4 @@ -/* mal2go - MyAnimeList V2 API wrapper for Go +/* MAL2Go - MyAnimeList V2 API wrapper for Go * Copyright (C) 2022 Vidhu Kant Sharma <vidhukant@protonmail.ch> * This program is free software: you can redistribute it and/or modify diff --git a/util/url_generator.go b/util/url_generator.go index 3d21a98..e6799b5 100644 --- a/util/url_generator.go +++ b/util/url_generator.go @@ -1,4 +1,4 @@ -/* mal2go - MyAnimeList V2 API wrapper for Go +/* MAL2Go - MyAnimeList V2 API wrapper for Go * Copyright (C) 2022 Vidhu Kant Sharma <vidhukant@protonmail.ch> * This program is free software: you can redistribute it and/or modify |