blob: 929e21ddae8f5da843048dbc2876292a05b4672b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"time"
"tildegit.org/andinus/cetus/background"
"tildegit.org/andinus/cetus/bpod"
"tildegit.org/andinus/cetus/cache"
"tildegit.org/andinus/cetus/notification"
)
func execBPOD() {
bpodApi := getEnv("BPOD_API", "https://www.bing.com/HPImageArchive.aspx")
// reqInfo holds all the parameters that needs to be sent with
// the request. GetJson() will pack apiKey & date in params
// map before sending it to another function. Adding params
// here will not change the behaviour of the function, changes
// have to be made in GetJson() too.
reqInfo = make(map[string]string)
reqInfo["api"] = bpodApi
|