@jike/open-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.1.12 • Public • Published

Jike Open platfrom JavaScript SDK

code style: prettier

Installation

npm install @jike/open-sdk --save

Configuration

import { JikeOpenSDK } from '@jike/open-sdk'
// FIRST OF ALL: apply for your application at jike open platform.
// replace <OPEN_APP_ID> with your openAppId.
const sdk = new JikeOpenSDK(<OPEN_APP_ID>)
// or
const sdk = new JikeOpenSDK({
  openAppId: <OPEN_APP_ID>
})

API

sdkInstance.getUserInfo()

  • avaliable version 4.15.0
sdkInstance.getUserInfo(): Promise<UserInfo>

Interface

UserInfo

interface UserInfo {
  user: {
    id: string,
    isLoginUser: boolean,
    screenName: string,
    profileImage: {
      format: string,
      picUrl: string,
      middlePicUrl: string,
      thumbnailUrl: string,
    }
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @jike/open-sdk

Weekly Downloads

0

Version

0.1.12

License

MIT

Unpacked Size

39.8 kB

Total Files

10

Last publish

Collaborators

  • joway
  • sorcererxw
  • sunskyxh
  • renzholy
  • themez
  • tiant167