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" new file mode 100644 index 0000000..e377f72 --- /dev/null +++ "b/jiaoyou_tongyong/\351\202\200\350\257\267\346\250\241\345\235\227.md" @@ -0,0 +1,64 @@ +- BaseUrl + - 测试环境: http://api-pre.heyqiwu.cn:48081 + + +#### 用户邀请记录 + +URL: {BaseUrl}/invite/record + +METHOD: POST + +RequestHeaders: + +| key | description | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | +| Timestamp | 请求时的时间戳,毫秒级 | +| Authorization | 签名, 将 appSecret+":"+timestamp 字符串md5提取摘要 | +| App-Channel-Id | 渠道ID | + +RequestBody: + +```json +{ + "workName":"小狗小白", // 作品名称 + "inviteUid":"123", // 邀请人ID + "invitedUid":"345" // 被邀请人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' \ +--header 'App-Channel-Id: tongyong-phone-mobileapp-test1' \ +--header 'Timestamp: 1660116039438' \ +--header 'Authorization: e246031304af17af07882a622ac3f5ce' \ +--header 'Content-Type: application/json' \ +--data-raw '{ + "workName":"小狗小白", + "inviteUid":"123", + "invitedUid":"345" +}' +``` + +ResponseExample +``` +{ + "code": 1, + "msg": "成功", + "encrypt": 0, + "data": null +} +``` \ No newline at end of file