Lewati ke konten
TakoAPI
Kembali ke skill

line-client

oleh 2manslkh

Web & Frontend Development
336Unduhan dilaporkan oleh clawskills.sh
3Bintang
0Tayangan
0 sukaMasuk untuk menyukai skill ini
—Belum ada penilaian
Penilaian Anda

Ringkasan

LINE messaging integration via Chrome extension gateway.

Deskripsi

Apa yang Dilakukan Skill Ini

Python client for the LINE messaging platform via LINE's Chrome extension JSON gateway. Supports sending and receiving messages, managing contacts and groups, handling reactions, and updating profiles. Authentication requires scanning a QR code in the LINE mobile app, with tokens valid for approximately 7 days.

LINE has no official API for personal accounts, and this library provides one of the few ways to automate personal LINE interactions without screen scraping.

Kapan Menggunakannya

  • Automating LINE message sends from a Python script
  • Polling a LINE group chat for incoming messages
  • Looking up or adding LINE contacts by phone number
  • Marking conversations as read in bulk
  • Reacting to messages with emoji responses programmatically

Contoh Alur Kerja

INPUT

User asks: Send 'Meeting at 3pm' to a LINE contact with MID U1234abc

AGENT
  1. 1

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

  2. 2

    Initialize LineChromeClient with the auth token

  3. 3

    Call client.send_message('U1234abc', 'Meeting at 3pm')

  4. 4

    Catch APIError(10051) if token is expired and prompt re-authentication via QR login

OUTPUT

Message delivered to the specified LINE contact

Persyaratan

  • lstm.wasm and lstmSandbox.js in repo root
  • LINE mobile app for QR code authentication

Instalasi

clawhub install 2manslkh/line-client

Jalankan perintah CLI-nya, atau tempel prompt ke Claude Code, Cursor, Codex, atau coding agent apa pun yang Anda pakai.

Tautan