From 5c0add988e49951427bf2434fa0fd818d7df2e7f Mon Sep 17 00:00:00 2001 From: jinfengli Date: Mon, 22 Aug 2022 20:59:05 +0800 Subject: [PATCH] 添加落地页的文档 --- jiaoyou_tongyong/邀请模块.md | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git "a/jiaoyou_tongyong/\351\202\200\350\257\267\346\250\241\345\235\227.md" "b/jiaoyou_tongyong/\351\202\200\350\257\267\346\250\241\345\235\227.md" index f58511b..6678501 100644 --- "a/jiaoyou_tongyong/\351\202\200\350\257\267\346\250\241\345\235\227.md" +++ "b/jiaoyou_tongyong/\351\202\200\350\257\267\346\250\241\345\235\227.md" @@ -2,8 +2,68 @@ - 测试环境: http://api-pre.heyqiwu.cn:48081 - 生产环境: https://tongyong.jiaoyou365.com/api/xiaowu +#### 进入落地页的记录 -#### 用户邀请记录 +URL: {BaseUrl}/invite/record/landing/page + +METHOD: POST + +RequestHeaders: + +| key | description | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | +| Timestamp | 请求时的时间戳,毫秒级 | +| Authorization | 签名, 将 appSecret+":"+timestamp 字符串md5提取摘要 | +| App-Channel-Id | 渠道ID | + +RequestBody: + +```json +{ + "workName":"小狗小白", // 作品ID + "inviteUid":"123", // 邀请者的UID + "channelId":"test" // 邀请者的渠道ID +} + +``` + +ResponseBody: + +```json +{ + "code": 1, // 1 成功; 其他状态码 失败 + "msg": "成功", // 提示信息 + "encrypt": 0, // 0 表示不解密, 1 表示解密 + "data": null // 响应的数据 +} +``` + +RequestExample +``` +curl --location --request POST 'http://api-pre.heyqiwu.cn:48081/invite/record/landing/page' \ +--header 'App-Channel-Id: landing-page-h5-test' \ +--header 'Timestamp: 1661172849422' \ +--header 'Authorization: c986494794463cedb28702f0879d27c2' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "workName":"小狗小白", + "inviteUid":"123", + "channelId":"test" +}' +``` + +ResponseExample +``` +{ + "code": 1, + "msg": "成功", + "encrypt": 0, + "data": null +} +``` + +#### app用户邀请记录 URL: {BaseUrl}/invite/record -- libgit2 0.27.1