23### Fetching private val
24
25Pass an api token as an username
26
27```console
1# Fetch data from the val town api
2
3## Usage
6
7```javascript
8const valtownApi = (path: string, options?: RequestInit) =>
9 @pomdtr.fetchValTownAPI(
10 @me.secrets.apiToken,
11 path,
12 options,
17
18```javascript
19@me.valtownApi("/alias/pomdtr")
20```
1Migrated from folder: externalAPIs/tmpz
1Migrated from folder: Archive/valtownAPIExamples
1Hello world!
2
3Migrated from folder: Intro_Stuff/myApi
5[](https://www.val.town/v/andreterron.women_and_power)
6
7This val uses [PNGLib](https://www.npmjs.com/package/pnglib) and Val Town's [Express API](https://docs.val.town/api#9bff1f5f778e4fe3a143df8169101795) to create and host PNG images. It can be particularly useful if you want to dynamically generate an image – for any website or API that accepts png urls.
8
9## Usage
1Migrated from folder: External_APIs/telegram/telegramWebhook/exampleTelegramMessage
1Migrated from folder: External_APIs/telegram/telegramWebhook/telegramValTownBotWebhookSetup
1The beating heart of the @ValTownBot on Telegram: https://www.val.town/v/stevekrouse.telegram
2
3Migrated from folder: External_APIs/telegram/telegramWebhook/telegramValTownBotWebhook
1# Send an email via [resend](https://resend.com)
2
3Requires a [resend](https://resend.com) API key, which you can get for free.
4
5## Usage
11 subject: "Hello World",
12 html: "Congrats on sending your first email!",
13 apiKey: @stevekrouse.secrets.resend,
14});
15```