Open Threpio opened 2 years ago
Hi there - Whilst testing out the management API for upstash I found two minor API dock typos:
In 'database >> create database' there is the following code for golang:
client := &http.Client{} var data = strings.NewReader(`{ "database_name":"myredis", "region":"eu-west-1", "type":"free" }`) req, err := http.NewRequest("POST", "https://api.upstash.com/v1/database", data) if err != nil { log.Fatal(err) } req.SetBasicAuth("username", "password") resp, err := client.Do(req) if err != nil { log.Fatal(err) } bodyText, err := ioutil.ReadAll(resp.Body) if err != nil { log.Fatal(err) } fmt.Printf("%s\n", bodyText)ttn');
I believe it should be the following three changes:
"username" = "EMAIL" "password" = "API_KEY" (In line with the authentification scenario above this one)
"username"
"EMAIL"
"password"
"API_KEY"
fmt.Printf("%s\n", bodyText)ttn'); <= Has a typo of an additional => ttn')
fmt.Printf("%s\n", bodyText)ttn');
ttn')
Hi there - Whilst testing out the management API for upstash I found two minor API dock typos:
In 'database >> create database' there is the following code for golang:
I believe it should be the following three changes:
"username"
="EMAIL"
"password"
="API_KEY"
(In line with the authentification scenario above this one)fmt.Printf("%s\n", bodyText)ttn');
<= Has a typo of an additional =>ttn')