1export let apiLog = (req, res) => {
2 console.log(req, res);
3 res.send(JSON.stringify({ req, res }));
1export function myApi(name) {
2 return "hi " + name;
3}
2
3export let postWebhookTest1 = fetchJSON(
4 "https://api.val.town/express/@stevekrouse.postWebhook1",
5 {
6 method: "POST",
3// GitHub events
4export let githubEvents = fetchJSON(
5 "https://api.github.com/users/stevekrouse/events"
6);
3
4export let getLocationEntities = async (text) => {
5 const URL = `https://language.googleapis.com/v1beta2/documents:analyzeEntities?key=${process.env.googleAPIKey}`;
6 const bodyText = {
7 document: {
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
3export const githubEvents = (username) =>
4 fetchJSON(
5 `https://api.github.com/users/${username}/events`
6 );
1export function myApi(name) {
2 return "hi " + name;
3}