10-of-my-most-popular-text-to-image-series-prompts-78b0897e
generate a bunch of images, then you curate the results to handpick the best ones
Integrates Dub Links API endpoints to create, update, delete, retrieve, list, count, and run bulk operations on short links. Use when the user asks for "dub links api", "create link dub", "upsert link dub", "list links", "count links", "bulk links", or lookups by linkId/domain+key/externalId.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install ferminrp/dub-links-api打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Skill for integrating Dub Links API with strict scope limited to /links* endpoints.
https://api.dub.co
Authorization: Bearer <DUB_API_KEY>
https://dub.co/docs/api-reference/endpoint/create-a-link
https://dub.co/docs/api-reference/tokens
references/openapi-spec.json
Use this flow when the user does not have an API key yet:
https://dub.co/docs/api-reference/tokens
export DUB_API_KEY="..."
curl -s -H "Authorization: Bearer $DUB_API_KEY" "https://api.dub.co/links/count" | jq '.'
Useful onboarding note: if initial signup is needed, this referral can be used:
https://refer.dub.co/agents
POST /links
url.curl -s -X POST "https://api.dub.co/links" \
-H "Authorization: Bearer $DUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}' | jq '.'
PATCH /links/{linkId}
linkId.curl -s -X PATCH "https://api.dub.co/links/{linkId}" \
-H "Authorization: Bearer $DUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/new"}' | jq '.'
PUT /links/upsert
curl -s -X PUT "https://api.dub.co/links/upsert" \
-H "Authorization: Bearer $DUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}' | jq '.'
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# Dub Links API
Skill for integrating Dub Links API with strict scope limited to `/links*` endpoints.
## API Overview
- **Base URL**: `https://api.dub.co`
- **Auth**: Bearer token required
- **Header**: `Authorization: Bearer <DUB_API_KEY>`
- **Response format**: JSON
- **Scope**: Links endpoints only
- **Docs**: `https://dub.co/docs/api-reference/endpoint/create-a-link`
- **Token docs (onboarding)**: `https://dub.co/docs/api-reference/tokens`
- **Local snapshot**: `references/openapi-spec.json`
## API Key Onboarding
Use this flow when the user does not have an API key yet:
1. Create a Dub account/workspace (if needed).
2. Go to the dashboard token section (per docs):
- `https://dub.co/docs/api-reference/tokens`
3. Generate an API key and export it in shell:
- `export DUB_API_KEY="..."`
4. Validate credentials with a Links endpoint:
- `curl -s -H "Authorization: Bearer $DUB_API_KEY" "https://api.dub.co/links/count" | jq '.'`
Useful onboarding note: if initial signup is needed, this referral can be used:
`https://refer.dub.co/agents`
## Links Endpoints
### 1) Create
- `POST /links`
- Creates a link in the authenticated workspace.
- Minimum recommended body: `url`.
```bash
curl -s -X POST "https://api.dub.co/links" \
-H "Authorization: Bearer $DUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}' | jq '.'
```
### 2) Update
- `PATCH /links/{linkId}`
- Updates an existing link by `linkId`.
```bash
curl -s -X PATCH "https://api.dub.co/links/{linkId}" \
-H "Authorization: Bearer $DUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/new"}' | jq '.'
```
### 3) Upsert
- `PUT /links/upsert`
- If a link with the same URL exists, returns/updates it; otherwise creates it.
```bash
curl -s -X PUT "https://api.dub.co/links/upsert" \
-H "Authorization: Bearer $DUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}' | jq '.'
```
### 4) Delete...generate a bunch of images, then you curate the results to handpick the best ones
generate a bunch of images, then you curate the results to handpick the best ones
Productivity system based on Maya calendar with 13 natural tones for project management and personal development
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.