跳到正文
TakoAPI
返回技能列表

line-api

由 2manslkh 提供

Web & Frontend Development
270下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

LINE messaging integration via Chrome extension gateway.

描述

该技能的功能

Python client for the LINE messaging platform, connecting through the Chrome extension gateway (line-chrome-gw.line-apps.com). Covers sending and receiving messages, contacts, groups, reactions, and profile management. Authentication uses QR code login with tokens stored locally; sessions expire after roughly 7 days.

The Chrome gateway translates Thrift to JSON internally, so you interact with a clean REST/JSON interface instead of LINE's binary Thrift protocol.

何时使用

  • Sending automated LINE messages from a Python script
  • Monitoring a LINE group chat for incoming messages
  • Looking up LINE contacts by phone number
  • Reacting to messages in a conversation automatically
  • Managing group membership and invitations programmatically

示例工作流

输入

User asks: Send 'Meeting at 3pm' to a LINE contact by their user ID

智能体
  1. 1

    Load auth token from ~/.line-client/tokens.json

  2. 2

    Initialize LineChromeClient with the auth token

  3. 3

    Call find_contact_by_userid() with the LINE user ID to resolve their MID

  4. 4

    Call send_message() with the MID and message text

输出

Message delivered to the LINE contact

前置要求

  • LINE account with mobile app for QR login
  • lstm.wasm and lstmSandbox.js files in repo root

安装

clawhub install 2manslkh/line-api

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接