... | @@ -3,11 +3,14 @@ action=essayEvalute)** |
... | @@ -3,11 +3,14 @@ action=essayEvalute)** |
|
|
|
|
|
**替代商户权限系统地址:[http://warrant.ssapi.cn](http://warrant.ssapi.cn)**
|
|
**替代商户权限系统地址:[http://warrant.ssapi.cn](http://warrant.ssapi.cn)**
|
|
|
|
|
|
###### 一、获取 appid 和 app_secret
|
|
### 一、获取 appid 和 app_secret
|
|
|
|
|
|
|
|
|
|
商务沟通,提供邮箱获取先声教育的商户授权 appid 和 app_secret。
|
|
商务沟通,提供邮箱获取先声教育的商户授权 appid 和 app_secret。
|
|
|
|
|
|
###### 二、服务端搭建《商户授权服务》
|
|
|
|
|
|
### 二、服务端搭建《商户授权服务》
|
|
|
|
|
|
|
|
|
|
1. git clone [git@pt.singsound.com:singsound-platform/warrant-client-php.git](mailto:git@pt.singsound.com:singsound-platform/warrant-client-php.git)
|
|
1. git clone [git@pt.singsound.com:singsound-platform/warrant-client-php.git](mailto:git@pt.singsound.com:singsound-platform/warrant-client-php.git)
|
|
2. cd warrant-client-php && mv .env.dist .env
|
|
2. cd warrant-client-php && mv .env.dist .env
|
... | @@ -15,30 +18,25 @@ action=essayEvalute)** |
... | @@ -15,30 +18,25 @@ action=essayEvalute)** |
|
4. vim .env
|
|
4. vim .env
|
|
5. vim index.php
|
|
5. vim index.php
|
|
|
|
|
|
###### 三、发起作文批改请求
|
|
|
|
|
|
|
|
* 访问服务端的《商户授权服务》获取 warrant 参数。详见:四、<a>商户授权服务接口规范</a>
|
|
### 三、发起作文批改请求
|
|
|
|
|
|
|
|
|
|
|
|
* 访问服务端的《商户授权服务》获取 warrant 参数。详见:四、<a>商户授权服务接口规范</a>
|
|
* 使用 warrant 参数以及《先声作文批改》接口参数,发起作文批改请求。详见:<a>五、作文批改接口规范</a>
|
|
* 使用 warrant 参数以及《先声作文批改》接口参数,发起作文批改请求。详见:<a>五、作文批改接口规范</a>
|
|
|
|
|
|
###### 四、商户授权服务接口规范
|
|
|
|
|
|
### 四、商户授权服务接口规范
|
|
|
|
|
|
* 请求参数说明
|
|
* 请求参数说明
|
|
|
|
|
|
<table>
|
|
<table>
|
|
|
|
|
|
<thead>
|
|
<thead>
|
|
|
|
|
|
<tr>
|
|
<tr>
|
|
|
|
|
|
<td>
|
|
<td>
|
|
|
|
|
|
参数名称
|
|
参数名称
|
|
|
|
|
|
</td>
|
|
</td>
|
|
|
|
|
|
<td>
|
|
<td>
|
|
|
|
|
|
类型
|
|
类型
|
|
|
|
|
|
</td>
|
|
</td>
|
... | | ... | |