package main
import (
"bytes"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://acount-apis-staging-a8cdb2402163.herokuapp.com/v1/auth/generate-token"
jsonStr := []byte(`{"userId":"user_35100188","merchantId":1,"permissions":["ais:accounts:read","ais:balance:read","ais:transactions:read"]}`)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonStr))
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}