memoryApiPolicymain.tsx10 matches
2import { markdownToHtml } from "https://esm.town/v/xkonti/markdownToHtml";
34export const getPolicy = (apiName: string, contactEmail: string, lastUpdated: string) => {
5if (apiName == null || apiName === "") apiName = "Memory API";
6if (contactEmail == null || contactEmail === "") throw new Error("Contact email must be specified");
7if (lastUpdated == null || lastUpdated === "") throw new Error("The last updated date must be specified");
8const body = markdownToHtml(
9`# ${apiName} Privacy Policy
10Last Updated: ${lastUpdated}
1112## 1. Introduction
13Welcome to ${apiName}. This privacy policy outlines our practices regarding the collection, use, and sharing of information through ${apiName}.
1415## 2. Data Collection and Use
16${apiName} allows users to store, retrieve, list, and delete data. The data stored can be of any type as inputted by the user. We do not restrict or control the content of the data stored. ${apiName} serves as a public database accessible to anyone with an API key.
1718## 3. User Restrictions
19${apiName} does not impose age or user restrictions. However, users are advised to consider the sensitivity of the information they share.
2021## 4. Global Use
22Our API is accessible globally. Users from all regions can store and access data on ${apiName}.
2324## 5. Data Management
25Given the nature of ${apiName}, there are no user accounts or user identification measures. The API operates like a public database where data can be added, viewed, and deleted by any user. Users should be aware that any data they input can be accessed, modified, or deleted by other users.
2627## 6. Data Security
28${apiName} is protected by an API key; beyond this, there is no specific data security measure in place. Users should not store sensitive, personal, or confidential information using ${apiName}. We assume no responsibility for the security of the data stored.
2930## 7. Third-Party Involvement
31The API code is run and data is stored by val.town. They act as a third-party service provider for ${apiName}.
3233## 8. Changes to This Policy
companiesHousePublicDatamain.tsx4 matches
2const url = new URL(req.url);
3const path = url.searchParams.get("path");
4const apiUrl = new URL(path, "https://api.company-information.service.gov.uk/");
5const apiKey = Deno.env.get("companiesHouseApiKey");
6const basicAuth = btoa(apiKey + ":");
7const response = await fetch(apiUrl, {
8headers: { Authorization: `Basic ${basicAuth}` },
9});
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=44";
2import { google } from "npm:googleapis";
34export async function getAccessToken(accountId: string, bearer = Deno.env.get("pipedream")) {
5const response = await fetchJSON(
6`https://api.pipedream.com/v1/accounts/${accountId}?include_credentials=1`,
7{ bearer },
8);
1# Pipedream helpers
23Pipedream offers an Accounts API to handle OAuth for you, automatically, and for free. [How to do it is covered in this guide](https://docs.val.town/integrations/google-sheets/#use-pipedreams-accounts-api).
45The helper functions below can make it easier to work with various Google API. For example, I used them like so to get all my free/busy times for this week from all my google calendars:
67```ts
37```
3839In order for this to work you need to follow the instructions in [this guide](https://docs.val.town/integrations/google-sheets/#use-pipedreams-accounts-api) to save your pipedream API key into your [Val Town Environment Variables](/settings/environment-variables) under `pipedream`, then connect the google account you care about to Pipedream, and copy it's Pipedream "account id" into your val code. Let me know if you need any help by commenting on this val!
4041Migrated from folder: Archive/pipedream
891. Click `Fork`
102. Change `location` (Line 4) to describe your location. It accepts fairly flexible English descriptions which it turns into locations via [nominatim's geocoder API](https://www.val.town/v/stevekrouse/nominatimSearch).
113. Click `Run`
12
gptApiSchemaBuildermain.tsx3 matches
6return zodToJsonSchema(schema, {
7name: "schema",
8target: "openApi3",
9}).definitions.schema;
10}
61}
6263export function getOpenApiSpec(
64url: string,
65title: string,
69) {
70return {
71openapi: "3.1.0",
72info: {
73title,
5At [OurTechnology](https://ourtechnology.co), we create technology solutions to empower and equip those who serve the homeless. We have a large data set of available resources in the US to aid in helping those experiencing homelessness find local resources, community, and support.
67This private (_but public to read_) API is used in our [ChatGPT Assistant, Homeless Services](https://chatg.pt/homeless-help).
89## Why a [ChatGPT Assistant](https://chatg.pt/homeless-help)?
15- The data set has been compiled together over the years and will continue to be updated as new techniques and partnerships make that possible.
16- We use [Typesense](typesense.org), a search as a service tool, to provide lightning fast search results for homeless resources near you.
17- This endpoint is created with [Hono](hono.dev) and is an incredibly easy way to create an API.
1819## Contact OurTechnology
gameIdeaApiREADME.md1 match
4- The GPT using it: [Game Idea Exchange GPT](https://chatgpt.com/g/g-8fryVV9cU-game-idea-exchange)
56Migrated from folder: Tuts/XkontiTech/gameIdeaApi
testPostToMastodonmain.tsx1 match
3export function testPostToMastodon() {
4let response = postToMastodon(
5"https://floss.social/api/v1",
6Deno.env.get("mastodonAccessToken"),
7"🔴 Nueva página web del proyecto de investigación periodÃstica #CrimenesdeOdio. Recogemos 101 casos actualizados con 103 vÃctimas mortales en el Estado español entre 1990 y 2020. 👉 http://crimenesdeodio.info",