Importar Produtos do ToPedindo

Basta acessar o site do cliente no to pedindo e ir no console e colar o seguinte comando

fetch("https://ws.goopedir.com/to_pedindo.php", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(this.__INITIAL_DATA__.catalogo)
})
.then(response => response.json()) // ou .text() se a API não retornar JSON
.then(data => {
console.log(data);
})
.catch(error => {
console.error("Erro:", error);
});

ele vai fazer um post no servidor e gerar um link com o Json

Bastar ir em Parametros > Geral e colar o link e importar

Você achou esse artigo útil?