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

0.1.7 • Public • Published

Jike Open platfrom JavaScript SDK

code style: prettier

Installation

npm install jike-open-js-sdk --save

Configuration

import { JikeOpenJsSDK } from 'jike-open-js-sdk'

// you need to apply for your own openAppId first.
// replace <openAppId> with your openAppId.
const sdk = new JikeOpenJsSDK(<openAppId>)
// or
const sdk = new JikeOpenJsSDK({
  openAppId: <openAppId>
})

API

sdkInstance.getUserInfo()

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-js-sdk

Weekly Downloads

0

Version

0.1.7

License

MIT

Unpacked Size

36.1 kB

Total Files

10

Last publish

Collaborators

  • sunskyxh