1. 定义集成接口
2. 定义动态参数接口
3. 发布成开放平台接口
3.1 一键勾选多个发布开放平台,可重复发布
3.2 查看开发平台接口列表
3.3 查看开发平台接口详情
3.4 查看开发平台接口详情
4. 创建生成开放平台授权应用
5. postman模拟请求
5.1 获取Oinone开发平台APIKEY和APISecret
在开发接口列表中找到对应授权应用,点击查看密钥,获得APIKEY和APISecret
5.2 请求接口生成accessToken
接口请求
curl --location --request POST 'http://localhost/openapi/get/access-token' \
--header 'appKey: d63cb1d2c2af4e6b95f36b172804e2cc' \
--header 'appSecret: aQ0BwU/vpcLTm5swRaqXW6O5RUdrwOFGJF2nt2I4boIe7luRzul7y8msnKZuPKtvKprmGpw8z29+djBTUkKaV3zBZ4ZPSbaOkiiTB0AQvoPnPBnHxpF6M8xxDlS13hCRy0D01pcc8DbEwWYPetvp7j8WwLL6q3FusJaZPISPLuucT1hxnrCIA2fe72X7UxojROtOfBvYw6+JFv0E8xwrGLfXXX99wbTywuMzhEoqv64dYR2tfNLubua1xJnf/iAhFao+gw7y/44CZ1u3sUpFeIn5T9MnXB3BDVJnanSZTsxnl5wWY9HojrqtSfPJpcd59OKEmehpbHT9++muvDHgdM5zhbS6NhgSXKdH/kOQEP695RcB09AJxHIwcNF6hv4wGBNsAzHFUMx2QTgwHLONmFjx85ZNkp1iD8L3CYn+5kH2FAO+PG9KG/HvJRGoiViF53LyCSzf5FKj0uUY4QCHbTXXNfCE2L04PNlRj1Hj17JKxcTQ6ea1GsslYG5GjiOET2mRWw+DdnxK6S3GGR0pudRD3K22eG+ZLe/IY4sbMmJfAh8daYtOGcDuoiNXXbUUsf9uSgDDBihXy9ajNQUh8qIHb+N5dqbm/o69WLPUYVYvUzWZt23LHCLj1G8iZTTgkPmdhBsXGRcCBtyMpA7Vfci1TuBzuKrLPnB51T2hGhw='
响应结果
{
"access_token": "P0ztlcF+cL0RmRwTqjw6+i03NPScjdJptXQu4W98h0mssJl/5Bsg095ohzdCQtQu",
"success": true,
"errorCode": 0,
"expires_time": 7200,
"errorMsg": "ok"
}
5.3 模拟请求钉钉接口
接口请求
curl --location 'http://localhost/openapi/dingtalk/api/v1.0/oauth2/accessToken' \
--header 'accessToken: P0ztlcF+cL0RmRwTqjw6+i03NPScjdJptXQu4W98h0k+xvGkaQmOCqCqKFEe5uNE' \
--header 'Content-Type: application/json' \
--data '{
"appKey": "dinguhgmdxva33gs8oaz",
"appSecret": "QlxE8g7xoOCmVOZ9nGy-dqMduMstmxRFNGjENCyuwEVHa9jaxy6CioQYjEFkxHAM"
}'
响应结果
{
"expireIn": 7200,
"accessToken": "f87a4ef669ae35879c5b1ee6237a584b",
"http": {
"headers": {
"Content-Type": "application/json"
}
}
}
5.3 模拟动态参数请求钉钉接口
使用postman请求是对应地址
openapi/dingtalk/api/v1.0/{oauth}/accessToken
需改成
openapi/dingtalk/api/v1.0/:oauth/accessToken
接口请求
curl --location 'http://localhost/openapi/dingtalk/api/v1.0/oauth2/accessToken' \
--header 'accessToken: P0ztlcF+cL0RmRwTqjw6+i03NPScjdJptXQu4W98h0k+xvGkaQmOCqCqKFEe5uNE' \
--header 'Content-Type: application/json' \
--data '{
"appKey": "dinguhgmdxva33gs8oaz",
"appSecret": "QlxE8g7xoOCmVOZ9nGy-dqMduMstmxRFNGjENCyuwEVHa9jaxy6CioQYjEFkxHAM"
}'
响应结果
{
"expireIn": 7200,
"accessToken": "f87a4ef669ae35879c5b1ee6237a584b",
"http": {
"headers": {
"Content-Type": "application/json"
}
}
}
Oinone社区 作者:数式-海波原创文章,如若转载,请注明出处:https://doc.oinone.top/designer/eipdesigner/6454.html
访问Oinone官网:https://www.oinone.top获取数式Oinone低代码应用平台体验