Ferramentas
Nenhuma ferramenta encontrada.
Nenhuma ferramenta encontrada.
curl -X GET "https://hub.imarco.com.br/api/tools" \ -H "X-API-TOKEN: seu_token_aqui"
curl -X GET "https://hub.imarco.com.br/api/auth?action=list_users" \ -H "X-API-TOKEN: seu_token_aqui"
curl -X POST "https://hub.imarco.com.br/api/auth?action=login" \
-H "X-API-TOKEN: seu_token_aqui" \
-H "Content-Type: application/json" \
-d '{"email": "usuario@exemplo.com", "password": "sua_senha"}'
fetch('https://hub.imarco.com.br/api/tools', {
headers: { 'X-API-TOKEN': 'seu_token_aqui', 'Content-Type': 'application/json' }
})
.then(res => res.json())
.then(data => console.log('Ferramentas:', data));
fetch('https://hub.imarco.com.br/api/auth?action=list_users', {
headers: { 'X-API-TOKEN': 'seu_token_aqui', 'Content-Type': 'application/json' }
})
.then(res => res.json())
.then(data => console.log('Usuários:', data));
fetch('https://hub.imarco.com.br/api/auth?action=login', {
method: 'POST',
headers: {
'X-API-TOKEN': 'seu_token_aqui',
'Content-Type': 'application/json'
},
body: JSON.stringify({ email: 'usuario@exemplo.com', password: 'sua_senha' })
})
.then(res => res.json())
.then(data => console.log('Login SSO:', data));
$ch = curl_init('https://hub.imarco.com.br/api/tools');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-TOKEN: seu_token_aqui', 'Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
$ch = curl_init('https://hub.imarco.com.br/api/auth?action=list_users');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-API-TOKEN: seu_token_aqui', 'Content-Type: application/json']);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
$ch = curl_init('https://hub.imarco.com.br/api/auth?action=login');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([
'email' => 'usuario@exemplo.com',
'password' => 'sua_senha'
]));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'X-API-TOKEN: seu_token_aqui',
'Content-Type: application/json'
]);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
import requests
response = requests.get(
"https://hub.imarco.com.br/api/tools",
headers={"X-API-TOKEN": "seu_token_aqui"}
)
print(response.json())
import requests
response = requests.get(
"https://hub.imarco.com.br/api/auth",
params={"action": "list_users"},
headers={"X-API-TOKEN": "seu_token_aqui"}
)
print(response.json())
import requests
response = requests.post(
"https://hub.imarco.com.br/api/auth",
params={"action": "login"},
headers={"X-API-TOKEN": "seu_token_aqui"},
json={"email": "usuario@exemplo.com", "password": "sua_senha"}
)
print(response.json())