0.1.7 • Published 6 years ago

jike-open-js-sdk v0.1.7

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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,
    }
  }
}
0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago