Tiny Olist ERP - #1 Introdução
14/05/2026No tutorial de hoje iniciaremos o curso de integração do Google Planilhas com o Tiny Olist ERP.
Tiny Olist ERP
Nós deixaremos abertos sempre três abas:
- Conta do Tiny Olist ERP
- API V3 Tiny
- Planilha Google
No Google Sheets acessaremos extensões >> apps script e criaremos dois arquivos:
let app = SpreadsheetApp;
let spreadsheet = app.getActiveSpreadsheet();
//https://accounts.tiny.com.br/realms/tiny/protocol/openid-connect/auth?client_id=SEU_CLIENT_ID&redirect_uri=SUA_URL_DE_REDIRECIONAMENTO&scope=openid&response_type=code
let clientId = 'SEU_CLIENT_ID';
let clientSecret = 'SEU_CLIENT_SECRET';
let code = 'CODIGO_DA_URL';
/**
* Gera o token inicial
*/
function getToken() {
const url = 'https://accounts.tiny.com.br/realms/tiny/protocol/openid-connect/token';
const payload = {
grant_type: 'authorization_code',
client_id: clientId,
client_secret: clientSecret,
redirect_uri: 'https://www.webdesignemfoco.com',
code: code
};
const options = {
method: 'post',
contentType: 'application/x-www-form-urlencoded',
payload: payload,
muteHttpExceptions: true
};
const response = UrlFetchApp.fetch(url, options);
const responseText = response.getContentText();
Logger.log(responseText);
return JSON.parse(responseText);
}
Então é isso, por hoje é só! Fiquem todos com Deus! Sucesso nos códigos e na vida!
Precisa de ajuda na criação de planilhas? webdesignemfoco@gmail.com
Ninguém vem ao Pai, senão por mim. João 14:6










