# capacitor-tencent-qq
**Repository Path**: 3433/capacitor-tencent-qq
## Basic Information
- **Project Name**: capacitor-tencent-qq
- **Description**: QQ登陆插件QQ登陆插件QQ登陆插件
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-04-12
- **Last Updated**: 2022-07-28
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# capacitor-plugin-tencent-qq
QQ互联
## Install
```bash
npm install capacitor-plugin-tencent-qq
npx cap sync
```
## API
* [`login(...)`](#login)
* [`isQQInstalled()`](#isqqinstalled)
* [Interfaces](#interfaces)
### login(...)
```typescript
login(option: LoginOption) => Promise
```
| Param | Type |
| ------------ | --------------------------------------------------- |
| **`option`** | LoginOption |
**Returns:** Promise<LoginResult | null>
--------------------
### isQQInstalled()
```typescript
isQQInstalled() => Promise
```
**Returns:** Promise<IsQQInstalledResult>
--------------------
### Interfaces
#### LoginResult
| Prop | Type |
| -------------------------- | ------------------- |
| **`ret`** | number |
| **`openid`** | string |
| **`access_token`** | string |
| **`pay_token`** | string |
| **`expires_in`** | number |
| **`pf`** | string |
| **`pfkey`** | string |
| **`msg`** | string |
| **`login_cost`** | number |
| **`query_authority_cost`** | number |
| **`authority_cost`** | number |
| **`expires_time`** | number |
#### LoginOption
| Prop | Type |
| ---------- | ------------------------------------------- |
| **`type`** | 'sso' \| 'server-side' \| null |
#### IsQQInstalledResult
| Prop | Type |
| --------------- | -------------------- |
| **`installed`** | boolean |