US Congress Stock Trading API examples & templates
Use these vals as a playground to view and fork US Congress Stock Trading API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
dthyresson
airportCodeMapRedirector
HTTP
IATA Airport Code Map Redirector I needed way redirect to a map for a given aiport given an IATA airport code . This way is it's a simple proxy redirect and I can change if I want to use Google Maps or another service (or change zoom levels, etc) without having to update the link. Usage: Boston Logan: https://iata.thyresson.io?q=bos
0
charmaine
googleGeminiAPI
Script
Gemini API A simple and easy to use client for the Gemini API This template shows you how to use the Gemini. This starter template was ported from this one on Docs . To run it: Click Fork on this val Get your Gemini API key Add it to your Environment Variables as GEMINI_API_KEY Click Run on this script val
0
mattx
parse_cookies
Script
parse_cookies Parses Cookie headers into objects. jar : Value of the Cookie header decoder : Function to run on all cookie names and values. This is to get around character limitations (see RFC 6265 ). There is no formal standard, but as most sites prefer URL encoding, it is the default. x => x can be used as a way to disable decoding.
0
omgwtfbrblolttyl
writeFileEndpoint
Express (deprecated)
TODO: [ ] get token from header [ ] decode using secret from env [ ] look up globs for user with id from token [ ] get path from req.body [ ] test path against all globs for user [ ] if none pass, 403 with message [ ] if any pass, write val to db with path as key (overwrite if exists) [ ] return new value
1