Skip to content
Agentmart
Submit a tool

weibo-token

微博 API 访问令牌工具。用于获取和管理微博 API 的访问 token。 此工具为其他微博工具(热搜、搜索、用户微博等)提供统一的 token 管理服务。 token 有效期为 2 小时,工具会自动缓存和刷新。

Skill by wecode-ai

IndexedApache-2.0★ 39
Write a review

Chalk Labs

Need help deploying weibo-token?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/wecode-ai-weibo-token

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

微博 API 访问令牌工具。用于获取和管理微博 API 的访问 token。 此工具为其他微博工具(热搜、搜索、用户微博等)提供统一的 token 管理服务。 token 有效期为 2 小时,工具会自动缓存和刷新。

Use cases: backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/weibo-token

What's inside

Skill name
weibo-token
Description
微博 API 访问令牌工具。用于获取和管理微博 API 的访问 token。 此工具为其他微博工具(热搜、搜索、用户微博等)提供统一的 token 管理服务。 token 有效期为 2 小时,工具会自动缓存和刷新。
License
Apache-2.0
Metadata
version: 1.0.0
Instructions
135 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 微博 Token 工具

使用 `weibo_token` 工具获取微博 API 访问令牌。此工具提供统一的 token 管理服务,为其他微博工具提供认证支持。

## 基本用法

```json
{
  "tool_calls": [
    {
      "name": "weibo_token",
      "arguments": {}
    }
  ]
}
```

此工具不需要任何参数,直接调用即可获取当前有效的 token。

## 参数说明

此工具无需参数。

## 返回结果

成功时返回:

```json
{
  "success": true,
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "acquiredAt": "2026-03-12T15:30:00.000Z",
  "expiresIn": 7200,
  "expiresAt": "2026-03-12T17:30:00.000Z"
}
```

错误时返回:

```json
{
  "success": false,
  "error": "获取微博 token 失败: 错误信息"
}
```

## 返回字段说明

| 字段 | 类型 | 说明 |
|------|------|------|
| `success` | boolean | 是否成功获取 token |
| `token` | string | 访问令牌 |
| `acquiredAt` | string | token 获取时间(ISO 8601 格式) |
| `expiresIn` | number | token 有效期(秒),默认 7200 秒(2小时) |
| `expiresAt` | string | token 过期时间(ISO 8601 格式) |

## 配置(必填)

```json
{
  "channels": {
    "weibo": {
      "appId": "your_app_id",
      "appSecret": "your_app_secret"
    }
  }
}
```

### 配置项说明

| 配置项 | 类型 | 必填 | 默认值 | 说明 |
|--------|------|------|--------|------|
| `appId` | string | 是 | - | 应用 ID,用于获取 token |
| `appSecret` | string | 是 | - | 应用密钥,用于获取 token |
| `tokenEndpoint` | string | 否 | `https://open-im.api.weibo.com/open/auth/ws_token` | Token 获取端点 |
| `weiboTokenEnabled` | boolean | 否 | `true` | 是否启用 token 工具 |

## API 说明

此工具使用微博开放平台的 token 接口:

### 获取 Token
```
POST https://open-im.api.weibo.com/open/auth/ws_token
Content-Type: application/json

{
  "app_id": "your_app_id",
  "app_secret": "your_app_secret"
}
```

### 响应示例
```json
{
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "expire_in": 7200
  }
}
```

## Token 缓存机制

1. **自动缓存**:首次获取的 token 会被缓存
2. **自动刷新**:在 token 过期前 60 秒自动刷新
3. **共享使用**:所有微博工具共享同一个 token 缓存

## 使用场景

此工具主要用于以下场景:

1. **调试**:检查当前 token 状态和有效期
2. **预热**:在使用其他微博工具前预先获取 token
3. **监控**:监控 token 的获取和刷新情况

## 与其他工具的关系

From wecode-ai/openclaw-weibo, Apache-2.0.

More from wecode-ai/openclaw-weibo

Signals

Stars
39
Forks
7
Open issues
2
Last commit (this folder)
Apr 13, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0.0
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from wecode-ai

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get weibo-token running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying weibo-token?

CallGet help
Cite this page

weibo-token skill. Agent Mart. https://agentmart.dev/skills/wecode-ai-weibo-token (last updated 2026-10-24)