GaibAnd蓝海

库存融资系统与蓝海对接


获取蓝海ACCESS_TOKEN

[TOC]

简要描述
  • 登录系统平台,并获取授权token,在后续请求中需要在头信息中携带token
  • 测试环境 账号:systemApi@GAIB, 密码:gaIb@2022
请求URL
  • 测试环境 https://gaapi.dixingps.cn/login/oauth/token
请求方式
  • POST
请求头
参数名 必选 说明
Authorization Basic YXBwOjEyMzQ1Ng==
Content-Type application/x-www-form-urlencoded
参数 formdata类型
参数名 必选 类型 说明
username string 用户名
password string 密码<br/>加密方式:AES/CBC/NoPadding
grant_type string 授权类型,固定值 password
请求示例
{
    &quot;username&quot;: &quot;systemApi@GAIB&quot;,
    &quot;password&quot;: &quot;7uDP61KaKVeT8xC8+NgxJw==&quot;,
    &quot;grant_type&quot;: &quot;password&quot;
}
返回参数说明
参数名 类型 说明
access_token string 授权服务器访问令牌所必需的参数
token_type string 这是必需参数,由授权服务器分配并指定令牌的类型。
expires_in integer 这是一个推荐的参数,用于指定访问令牌到期的持续时间
refresh_token string 如果访问令牌过期,它提供刷新令牌,以使用授权授权获取新的访问令牌。
scope string
name string 用户名
customerId integer 机构id
diplayPic string
isAdmin integer
type integer
userId integer 用户id
email string 邮箱
返回示例
 {
    &quot;access_token&quot;: &quot;71ebb676-034a-45ff-9068-5f8521208bf5&quot;,
    &quot;token_type&quot;: &quot;bearer&quot;,
    &quot;refresh_token&quot;: &quot;d6ac5903-c252-4f16-bff0-1e7159ecd0e5&quot;,
    &quot;expires_in&quot;: 21615,
    &quot;scope&quot;: &quot;server&quot;,
    &quot;name&quot;: &quot;test@hyyy&quot;,
    &quot;customerId&quot;: 21,
    &quot;diplayPic&quot;: null,
    &quot;isAdmin&quot;: 9,
    &quot;type&quot;: 4,
    &quot;userId&quot;: 1,
    &quot;email&quot;: &quot;test@163.com&quot;
}
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML