curl --request GET \
--url https://api.salvy.com.br/api/v3/tasks/{id}/results \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salvy.com.br/api/v3/tasks/{id}/results"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salvy.com.br/api/v3/tasks/{id}/results', 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.salvy.com.br/api/v3/tasks/{id}/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.salvy.com.br/api/v3/tasks/{id}/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.salvy.com.br/api/v3/tasks/{id}/results")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salvy.com.br/api/v3/tasks/{id}/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"type": "phone-account.update-cost-center",
"data": [
{
"phoneAccount": {
"id": "0140a8c6-3815-45b7-9e60-8e137cad845c",
"phoneNumber": "+5541999999999"
},
"status": "applied",
"reason": "Esta linha está bloqueada",
"retryable": false
}
],
"pagination": {
"page": 1,
"pageSize": 50,
"totalCount": 123,
"totalPages": 3
}
}{
"code": "unauthorized",
"message": "<string>"
}{
"code": "forbidden",
"message": "<string>"
}{
"code": "resource-not-found",
"message": "<string>"
}{
"code": "payload-too-large",
"message": "<string>"
}{
"code": "input-validation-error",
"message": "<string>",
"details": [
{
"key": "<string>",
"message": "<string>"
}
]
}{
"code": "too-many-attempts",
"message": "<string>"
}{
"code": "unknown",
"message": "<string>"
}Listar resultados da tarefa
Lista o resultado de cada item já processado de uma tarefa iniciada por uma chave de API da sua empresa, na ordem em que os itens foram incluídos, com paginação. Itens pendentes ou interrompidos aparecem apenas nas contagens de GET /tasks/. O campo type indica a operação da tarefa e o formato de cada item em data. Tarefas iniciadas pelo dashboard não são consultáveis por aqui e respondem 404.
curl --request GET \
--url https://api.salvy.com.br/api/v3/tasks/{id}/results \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salvy.com.br/api/v3/tasks/{id}/results"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salvy.com.br/api/v3/tasks/{id}/results', 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.salvy.com.br/api/v3/tasks/{id}/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.salvy.com.br/api/v3/tasks/{id}/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.salvy.com.br/api/v3/tasks/{id}/results")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salvy.com.br/api/v3/tasks/{id}/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"type": "phone-account.update-cost-center",
"data": [
{
"phoneAccount": {
"id": "0140a8c6-3815-45b7-9e60-8e137cad845c",
"phoneNumber": "+5541999999999"
},
"status": "applied",
"reason": "Esta linha está bloqueada",
"retryable": false
}
],
"pagination": {
"page": 1,
"pageSize": 50,
"totalCount": 123,
"totalPages": 3
}
}{
"code": "unauthorized",
"message": "<string>"
}{
"code": "forbidden",
"message": "<string>"
}{
"code": "resource-not-found",
"message": "<string>"
}{
"code": "payload-too-large",
"message": "<string>"
}{
"code": "input-validation-error",
"message": "<string>",
"details": [
{
"key": "<string>",
"message": "<string>"
}
]
}{
"code": "too-many-attempts",
"message": "<string>"
}{
"code": "unknown",
"message": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Número da página, iniciando em 1.
1 <= x <= 90071992547409911
Tamanho da página. Máximo de 200.
1 <= x <= 20050
Filtra pelo resultado do item: applied ou failed. Repita o parâmetro para incluir múltiplos valores (?status=applied&status=failed).
applied, failed Response
- Option 1
- Option 2
Operação da tarefa, a mesma de GET /tasks/{id}. Nas operações sobre linhas, cada item traz phoneAccount.
phone-account.update-cost-center, phone-account.update-custom-fields, phone-account.top-up-data, phone-account.cancel "phone-account.update-cost-center"
Show child attributes
Show child attributes
Show child attributes
Show child attributes