Skip to content

Instantly share code, notes, and snippets.

View thiagoszbarros's full-sized avatar
🎯
Focusing

Thiago Barros thiagoszbarros

🎯
Focusing
View GitHub Profile
@danperrout
danperrout / TesouroDireto.gs
Last active January 24, 2026 19:37
API Função TESOURODIRETO Google Sheets
/*
* @return Acessa radaropcoes.com e retorna informações de um título específico do Tesouro Direto
* Endpoint: https://api.radaropcoes.com/bonds/{bondName}
*/
function TESOURODIRETO(bondName, argumento = "r") {
let srcURL = "https://api.radaropcoes.com/bonds/" + encodeURIComponent(bondName);
let response = UrlFetchApp.fetch(srcURL, {
muteHttpExceptions: true
});
@jeffochoa
jeffochoa / Response.php
Last active October 6, 2025 22:11
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;