WorkPro Manual

得到令牌

[Api Test]

Url

[接口服务器地址]/api/token/get.html

Method

POST

Request Headers

Name 必选 Type Description
Content-Type true string application/json; charset=UTF-8
authen true string Authen 什么是认证码
appid true string AppID 什么是接入ID
timestamp true string Timestamp
uid true string UID
lang true string Language zh-cn,en-us

Request Body

Name 必选 Type Description
token true string 令牌ID
scope true string 用户信息范围 ["user","powers","third"],
user 为用户详情信息,
powers 为用户的权限 ,
third 为与第三方系统绑定的帐号信息,空表示没有
org_id false string 组织ID 如果空,scope有powers,返回所有组织的权限,否则返回组织的权限

Debug Tool

Test

Return

            {"status":1,"code":0,"msg":"","data":{"user_id":"account1","platform":"1","token":"543a6f2a8ee73a6b830430e0f16a83bb","create_time":1514736000,"expire_time":1514822400}}