diff options
author | Andinus <andinus@nand.sh> | 2020-03-18 23:04:21 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2020-03-18 23:04:21 +0530 |
commit | 052140fb3ccd4b386d8d98ba7355d676c1e0693d (patch) | |
tree | 13a01d6c98e1e4875b4fba4fc12d67814b2a23d2 /pkg/bing/bpod.go | |
parent | 2f15edf548ec131d2eb97bd5338a1adef768acea (diff) | |
download | cetus-052140fb3ccd4b386d8d98ba7355d676c1e0693d.tar.gz |
Initial commit for Cetus v0.5.0 v0.5.0
Diffstat (limited to 'pkg/bing/bpod.go')
-rw-r--r-- | pkg/bing/bpod.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/pkg/bing/bpod.go b/pkg/bing/bpod.go deleted file mode 100644 index c7ee79d..0000000 --- a/pkg/bing/bpod.go +++ /dev/null @@ -1,23 +0,0 @@ -package bing - -import ( - "time" - - "framagit.org/andinus/cetus/pkg/cetus" -) - -// GetBpodJson returns json response received from the api -func GetBpodJson(reqInfo map[string]string, t time.Duration) (string, error) { - params := make(map[string]string) - params["format"] = "js" - params["n"] = "1" - - // if random is true then fetch 7 photos - if reqInfo["random"] == "true" { - params["n"] = "7" - - } - - body, err := cetus.GetRes(reqInfo["api"], params, t) - return string(body), err -} |