Commit ee1e4b30 by 任晓松

开放平台相关文档

parent badcd8c5
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -19,12 +19,13 @@
1. [商标注册风险报告](#getPassRateReport)
1. [行业分类](#getNclIntelligence)
1. [服务项查询](#getCompanyByService)
1. [图像base64转url](#getCropperPic)
## **<a name=""> 域名</a>**
##### URL
https://fqdev.gongsibao.com 测试
https://oapidev.gongsibao.com/ 测试
https://fq.gongsibao.com 线上
https://oapi.gongsibao.com/ 线上
## **<a name=""> 获取token</a>**
[返回到目录](#menu)
......@@ -37,9 +38,38 @@ https://fq.gongsibao.com 线上
"accessKey":"111",
"accessSecret":"222"
}
{
"channelId":1,
"appId":1,
"accessKey": "111"
}
```
#### 返回结果
```javascript
{
"status": 1,
"data": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhcHBJZCI6MSwiZXhwIjoxNjA3OTk4MTkwLCJpYXQiOjE2MDc5OTYzOTAsImNoYW5uZWxJZCI6MX0.GtlGqOriQb6vEOkBio_8sIjvjN3W-ajQV6woG7JJ8jY",
"msg": "success"
}
```
## **<a name=""> 获取token2</a>**
[返回到目录](#menu)
##### URL
[/openPlatform/platform/getTokenByApp]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
``` javascript
{
"channelId":1,
"appId":1,
"accessKey": "111"
}
```
#### 返回结果
```javascript
{
......@@ -3610,4 +3640,28 @@ https://fq.gongsibao.com 线上
"bizmsg": "empty",
"requestId": "b9c112d564774f49879d154a91d5dcfa"
}
```
## **<a name="getCropperPic"> 图片base64转Url</a>**
[返回到目录](#menu)
##### URL
[/openPlatform/business/tmQuery]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### Header token认证 `Authorization`
``` javascript
{
"path":"/api/tool/imghandle/getCropperPic",//固定写法
"base64":""//Y base64码
}
```
#### 返回结果
```javascript
{
"data": "https://gsb-zc.oss-cn-beijing.aliyuncs.com/zc_cropper16225138793896f5f7e0c27c24302803e2a1e87ce1daa.jpg",
"msg": null,
"requestId": "d88a79206f804265aaec3743bd85574e",
"status": 0
}
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment