[关闭]
@myyzs 2020-12-10T02:59:03.000000Z 字数 859 阅读 1702

获取明源移动审批待办角标接口(通用)

明源待办角标

重要:此文档已废弃,请移步 https://www.zybuluo.com/myyzs/note/1761634

说明

  1. 测试域名地址:http://qy-ci.fdccloud.com
  2. 线上地址: https://www.fdccloud.com

1.获取access_token

根据corpid和corpsecret获取获取access_token

接口地址:

HOST/api/tenant-open/get-access-token

传参方式 :

POST

参数:

{
    "corpid":"corpid,租户的唯一标识", //云助手后台获取
    "corpsecret":"租户的secret"  //云助手后台获取
}

corpid和corpsecret参数获取途径:
登录企业后台->设置中心->企业设置可以看到这个参数

返回结果:

成功返回

{
    "errcode": 0,
    "errmsg": "ok",
    "data": "xxxxxxxxxxxxx"   //access_token值
}

失败返回

{
    "errcode":"错误code",
    "errmsg":"错误信息",
    "data":""
}

说明

1.errcode 为0的时候代表成功,data值为access_token的值,为后面接口使用
2.access_token有效期为7200秒

2.获取移动审批待办数量

/api/tenant-open/get-sp-msg-num-v3?access_token=xxxxxxx&tenant_id=xxxxxxx&erp_user_code=xxxx

备注:tenant_id参数=corpid参数

传参方式

GET

说明

  1. erp_user_code:erp的user_code

返回结果

成功

{
  "errcode": 0,
  "errmsg":"错误信息",
  "data":{ 
      "sp_num":10
  }
}  

失败返回

{
    "errcode":"错误code",
    "errmsg":"错误信息",
    "data":""
}

说明

1.errcode 为0的时候代表成功,其他为错误码

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注