5## Usage
6
7## API
8
9### Acquire a lock.
1Migrated from folder: A_Features/_23_07_20_Notifications/paginateAPI
1Migrated from folder: A_Features/_23_07_20_Notifications/testApi
19 local message="$input"
20
21 curl -G https://api.val.town/v1/run/dpetrouk.notifyInTg --data-urlencode 'args=["'"$chat_id"'", "'"$message"'"]'
22}
23```
1# Get YT Video Information
2
3Given a youtube video url, this val returns a small amount of information about the video: title, channel title, and the description. It uses the Youtube Data API v3, so you need to bring your own API key to get it to work (see [here](https://developers.google.com/youtube/v3/getting-started) about setting up an API key).
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
This is an example of using the API to create a val.
测试 gpt image 的不同 api 能否满足图片生成要求
Affordable & reliable alternative to Twitter API:
➡️ Access user profiles, tweets, followers & timeline data in real-time
➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates
➡️ Simple integration