根据邀请链接代码获取团队信息

优质
小牛编辑
123浏览
2023-12-01

接口说明

根据邀请链接代码获取团队信息
如需调用,请访问 开发者文档 来查看详细的接口使用说明
该接口仅开放给已获取SDK的开发者
如开启https功能,请求地址的协议应改为https,如:https://www.example.com/wish3dearth/api/access/v1.0.0/getLicenseInfo

API地址

GET /permissions/api/team/v1.0.0/getTeamByUniquekey

是否需要登录

请求字段说明

参数类型请求类型是否必须说明
uniquekeystringqueryuniquekey
tokenstringheader当前登录用户的TOKEN

响应字段说明

参数类型说明
idstring团队ID
uniquekeystring邀请码
remarksstring备注信息
createBystring创建者ID
createDatestring创建日期
updateBystring更新者ID
updateDatestring更新日期
teamNamestring团队名称
currentUserInfostring当前用户信息

响应成功示例

{
  "code": 0,
  "data": {
    "id": "af337a35d3eb4e62a8732ee2f062f2ea",
    "uniquekey": "fd2a3f274efa4e11bbb98ce0a250a534",
    "remarks": null,
    "createBy": "289baa7eb41a421c9014fb1a00c887de",
    "createDate": "2019-12-11 09:55:03",
    "updateBy": "289baa7eb41a421c9014fb1a00c887de",
    "updateDate": "2019-12-11 09:55:03",
    "teamName": "test02的团队",
    "currentUserInfo": null
  },
  "message": "成功"
}

响应失败示例

{
  "code": 500,
  "message": "未知错误,请及时联系管理人员进行处理"
}

响应接受类型

application/json

响应状态码

HTTP状态码原因
0成功
200OK
401Unauthorized
403Forbidden
404Not Found
10000token不能为空
10001token已失效,请重新登录
15015团队信息错误
15017团队邀请码为空
99998非法请求
99999服务器异常

示例代码

$.ajax({

    url: '/permissions/api/team/v1.0.0/getTeamByUniquekey?uniquekey=&token=',

    type: 'GET',

    data: '',

    dataType: 'text',

    cache: false,

    contentType: 'application/json',

    xhrFields: {

        withCredentials: true

    },

    crossDomain: true,

    success:function(data){

        // 成功返回值

    },

    error:function(XMLHttpRequest, textStatus, errorThrown){

    

    }

})