aboutsummaryrefslogtreecommitdiff
path: root/util/default_client.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@protonmail.ch>2022-02-17 21:52:25 +0530
committerVidhu Kant Sharma <vidhukant@protonmail.ch>2022-02-17 21:52:25 +0530
commit7a910534c8d1e82420ef763b514f2763bda63e65 (patch)
tree4021d547862af5d5a78944ec6f251186b3647d4f /util/default_client.go
parent69a454a9a8430164c2ce798ecafee221404c50ec (diff)
updated the client in user and user/anime packages
Diffstat (limited to 'util/default_client.go')
-rw-r--r--util/default_client.go27
1 files changed, 27 insertions, 0 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
+}