qq-qr-login
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Welcome to qq-qr-login 👋

Version License: MIT

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(configIConfig, cookieJar?: CookieJar, qrCodePath?: string){ fetchfetch; jarCookieJar; loginlogin }

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

Readme

Keywords

none

Package Sidebar

Install

npm i qq-qr-login

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

8.43 kB

Total Files

8

Last publish

Collaborators

  • maniacata