jike-open-js-sdk
v0.1.7
Published
jike open platform javascript SDK
Downloads
3
Readme
Jike Open platfrom JavaScript SDK
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,
}
}
}