Go

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 package main import ( "bytes" "net/http" ) func main() { headers := map[string][]string{ "Content-Type": []string{"application/json"}, "Accept": []string{"application/json"}, "Callback": []string{"string"}, "Authorization": []string{"Bearer {chave-api}"}, } data := bytes.NewBuffer([]byte{jsonReq}) req, err := http.NewRequest("POST", "{url}", data) req.Header = headers client := &http.Client{} resp, err := client.Do(req) // ... }

{url}: URL da consulta, composta de URL Base + endpoint da consulta

{chave-api}: chave da API que você visualiza acessando a interface

URL Base:

endpoint da consulta: Veja a documentação específica em https://crawly.atlassian.net/wiki/spaces/PLEXIAPI/pages/601522208