Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songyinting
jiaoyou_doc
Commits
c88a9a07
Commit
c88a9a07
authored
May 27, 2022
by
李进峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加分享记录接口
parent
fec033ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
2 deletions
+56
-2
互动小说小程序文档.md
officialserver/互动小说小程序文档.md
+56
-2
No files found.
officialserver/互动小说小程序文档.md
View file @
c88a9a07
-
基本地
址
-
基本地
址
...
@@ -24,7 +24,6 @@ Headers:
...
@@ -24,7 +24,6 @@ Headers:
| key | value |
| key | value |
| :----------- | :------------: |
| :----------- | :------------: |
| Content-Type | application/json;charset=utf-8 |
| App-Channel-Id | 渠道ID |
| App-Channel-Id | 渠道ID |
| Timestamp | 时间戳 |
| Timestamp | 时间戳 |
| Authorization | Secret:Timestamp md5摘要之后的串 |
| Authorization | Secret:Timestamp md5摘要之后的串 |
...
@@ -45,3 +44,58 @@ payload中包含的参数:
...
@@ -45,3 +44,58 @@ payload中包含的参数:
| Key | Describe |
| Key | Describe |
| :----------- | :------------: |
| :----------- | :------------: |
| openId | 用户id |
| openId | 用户id |
#### 记录微信分享
URL: {基本地址}/wechat/mini/program/interactnovel/record
METHOD: POST
Headers:
| key | value |
| :----------- | :------------: |
| App-Channel-Id | 渠道ID |
| Timestamp | 时间戳 |
| Authorization | Secret:Timestamp md5摘要之后的串 |
RequestBody:
```
aesjson加密串
```
RequestBody解密:
```
{
"wxOpenId":"112", // 分享者ID
"sharedWxOpenId":"334" // 被分享者的ID
}
```
ResponseBody:
```
json
{
"status"
:
200
,
"message"
:
"提示信息"
,
"retcode"
:
0
,
//
0
:
表示成功,其他表示失败
"payload"
:
""
,
//
aes加密json之后的串
}
```
Example:
```
curl --location --request POST 'https://hw-gz26.heyqiwu.cn/api/officalserver/wechat/mini/program/interactnovel/record' \
--header 'App-Channel-Id: weixinxiaochengxu-phone-sdk-pro' \
--header 'Timestamp: 1653645183044' \
--header 'Authorization: 23d6884659e8899cb4f906c816ecc6b4' \
--header 'Content-Type: text/plain' \
--data-raw 'g4rSkgDpp83Bi2LIywNeYGK8ihhVX+eCnKNXayFLO8nseaXU05baPfsmVCZeXzgC'
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment