Integrating Ancho
Basic integration path
Creating new Ancho users
const response = await fetch('https://api.ancho.io/v1/users', {
headers: {
Authorization: `Bearer ${YOUR_ENVIRONMENT_API_KEY}`,
},
method: 'POST'
})
const user = await response.json()client := &http.Client{}
req, err := http.NewRequest(
"POST",
"https://api.ancho.io/v1/users",
strings.NewReader(""),
)
if err != nil {
panic(err)
}
req.Header.Add("Authorization", "Bearer "+YOUR_ENVIRONMENT_API_KEY)
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
panic(err)
}Choosing an SDK
Integrating the SDKs
Last updated