1.0.1 • Published 4 years ago

qq-qr-login v1.0.1

Weekly downloads
4
License
MIT
Repository
-
Last release
4 years ago

QR login for QQ web pages. QQ网页扫码登录。

Install

yarn add qq-qr-login 

Usage

example:

import { init } from "qq-qr-login";

/**
 * this config is for *.qzone.qq.com
 */
const site = {
  appid: "549000912",
  daid: "5",
  style: "40",
  s_url: "http://qun.qzone.qq.com/group"
};

(async()=>{
  const { login, fetch, jar } = init(site);
  // do something cool
})()

API

init

init(config: IConfig, cookieJar?: CookieJar, qrCodePath?: string): { fetch: fetch; jar: CookieJar; login: login }

Parameters

  • config: IConfig
  • Optional cookieJar: CookieJar
  • Optional qrCodePath: string

Returns

  • fetch: fetch
  • jar: CookieJar
  • login: login

Author

👤 maniacata

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator