Um artigo publicado
curl --request GET \
--url https://api.useweve.com/v1/help/articles/{slug}import requests
url = "https://api.useweve.com/v1/help/articles/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.useweve.com/v1/help/articles/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.useweve.com/v1/help/articles/{slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.useweve.com/v1/help/articles/{slug}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.useweve.com/v1/help/articles/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useweve.com/v1/help/articles/{slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"slug": "<string>",
"locale": "pt-BR",
"translations": [
{
"locale": "pt-BR",
"slug": "<string>"
}
],
"title": "<string>",
"body_markdown": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"collection": {
"slug": "<string>",
"name": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Central de ajuda
Ler um artigo da central
O texto publicado de um artigo, em Markdown.
GET
/
v1
/
help
/
articles
/
{slug}
Um artigo publicado
curl --request GET \
--url https://api.useweve.com/v1/help/articles/{slug}import requests
url = "https://api.useweve.com/v1/help/articles/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.useweve.com/v1/help/articles/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.useweve.com/v1/help/articles/{slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.useweve.com/v1/help/articles/{slug}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.useweve.com/v1/help/articles/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useweve.com/v1/help/articles/{slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"slug": "<string>",
"locale": "pt-BR",
"translations": [
{
"locale": "pt-BR",
"slug": "<string>"
}
],
"title": "<string>",
"body_markdown": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"collection": {
"slug": "<string>",
"name": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}O rascunho não existe para quem lê: artigo nunca publicado, ou despublicado, responde 404.
Path Parameters
O endereço do artigo — letras minúsculas, números e hífens.
Maximum string length:
120Query Parameters
O idioma da central. Sem ele, português. Os idiomas da central. Lista fechada: idioma novo precisa dos textos da interface na página pública antes do primeiro artigo.
Available options:
pt-BR, en, es Response
O artigo
Os idiomas da central. Lista fechada: idioma novo precisa dos textos da interface na página pública antes do primeiro artigo.
Available options:
pt-BR, en, es Show child attributes
Show child attributes
Quando a versão que está no ar foi publicada.
Show child attributes
Show child attributes