Lista todas as funções de API
curl --request GET \
--url https://api.wppfy.com/function/list \
--header 'token: <api-key>'import requests
url = "https://api.wppfy.com/function/list"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.wppfy.com/function/list', 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.wppfy.com/function/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"token: <api-key>"
],
]);
$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.wppfy.com/function/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
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.wppfy.com/function/list")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/function/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"name": "<string>",
"description": "<string>",
"method": "<string>",
"endpoint": "<string>",
"id": "<string>",
"active": false,
"headers": "<string>",
"body": "<string>",
"parameters": "[]",
"undocumentedParameters": "<string>",
"header_error": false,
"body_error": false,
"owner": "<string>",
"created": "strftime('%Y-%m-%d %H:%M:%fZ')",
"updated": "strftime('%Y-%m-%d %H:%M:%fZ')"
}
]{
"error": "<string>"
}Funções API dos Agentes
Lista todas as funções de API
Retorna todas as funções de API configuradas para a instância atual
GET
/
function
/
list
Lista todas as funções de API
curl --request GET \
--url https://api.wppfy.com/function/list \
--header 'token: <api-key>'import requests
url = "https://api.wppfy.com/function/list"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.wppfy.com/function/list', 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.wppfy.com/function/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"token: <api-key>"
],
]);
$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.wppfy.com/function/list"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
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.wppfy.com/function/list")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.wppfy.com/function/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"name": "<string>",
"description": "<string>",
"method": "<string>",
"endpoint": "<string>",
"id": "<string>",
"active": false,
"headers": "<string>",
"body": "<string>",
"parameters": "[]",
"undocumentedParameters": "<string>",
"header_error": false,
"body_error": false,
"owner": "<string>",
"created": "strftime('%Y-%m-%d %H:%M:%fZ')",
"updated": "strftime('%Y-%m-%d %H:%M:%fZ')"
}
]{
"error": "<string>"
}Autorizações
Resposta
Lista de funções recuperada com sucesso
Nome da função
Descrição da função
Método HTTP da requisição
Endpoint da API
ID único da função gerado automaticamente
Indica se a função está ativa
Cabeçalhos da requisição
Corpo da requisição
Parâmetros da função
Parâmetros não documentados
Indica erro de formatação nos cabeçalhos
Indica erro de formatação no corpo
Proprietário da função
Data de criação
Data de atualização
