I have to connect to an API and i got this cURL working line command bellow
running on Postman.
What I need to do is make this run in Switch Execute Command, but couldn´t
resolve how to config it right.
Also I need a tip to whats better run all code inside Execute Command or
have the JSON part in a separate file.
This is cURL running on Postman:
Code: Select all
curl --location 'https://app.omie.com.br/api/v1/geral/clientes/' \
--header 'Content: application/json' \
--header 'Content-Type: application/json' \
--data '{
"call": "IncluirCliente",
"app_key": "1111111111",
"app_secret": "3bc234fgh701519f81d90ccc847bc1ad",
"param": [
{
"codigo_cliente_integracao": "UtiOmi00001",
"razao_social": "AOEN PUBLICIDADE LTDA.",
"nome_fantasia": "AOEN",
"endereco": "RUA BRIGADEIRO, 500",
"complemento": "SALA 1",
"bairro": "BELA VISTA",
"cidade": "São Paulo",
"estado": "SP",
"cep": "01317-000",
"cnpj_cpf": "00.123.345/0001-32",
"inscricao_municipal": "",
"inscricao_estadual": ""
}
]
}'
Any help is very welcome!
Thanks in advance!