Skip to content

Latest commit

 

History

History
203 lines (114 loc) · 6.33 KB

EnterpriseGrouponApi.md

File metadata and controls

203 lines (114 loc) · 6.33 KB

\EnterpriseGrouponApi

All URIs are relative to https://open.douyin.com

Method HTTP request Description
EnterpriseGrouponDetail Get /enterprise/groupon/detail 团购活动详情
EnterpriseGrouponList Get /enterprise/groupon/list 团购活动列表
EnterpriseGrouponOffline Post /enterprise/groupon/offline 团购活动下线
EnterpriseGrouponSave Post /enterprise/groupon/save 创建团购活动

EnterpriseGrouponDetail

EnterpriseGrouponDetailRsp EnterpriseGrouponDetail(ctx, accessToken, openId, optional)

团购活动详情

团购活动详情

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accessToken string 调用/oauth/access_token/生成的token,此token需要用户授权。
openId string 通过/oauth/access_token/获取,用户唯一标志
optional *EnterpriseGrouponDetailOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a EnterpriseGrouponDetailOpts struct

Name Type Description Notes

grouponIds | optional.Interface of []string| 团购活动的Id |

Return type

EnterpriseGrouponDetailRsp

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EnterpriseGrouponList

EnterpriseGrouponListRsp EnterpriseGrouponList(ctx, accessToken, openId, count, optional)

团购活动列表

团购活动列表

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accessToken string 调用/oauth/access_token/生成的token,此token需要用户授权。
openId string 通过/oauth/access_token/获取,用户唯一标志
count int64 每页数量
optional *EnterpriseGrouponListOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a EnterpriseGrouponListOpts struct

Name Type Description Notes

cursor | optional.Int64| 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。 | status | optional.Int64| 状态筛选 1 有效 2 审核中 3 审核失败 4 中止 |

Return type

EnterpriseGrouponListRsp

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EnterpriseGrouponOffline

EnterpriseGrouponOfflineRsp EnterpriseGrouponOffline(ctx, accessToken, openId, optional)

团购活动下线

团购活动下线

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accessToken string 调用/oauth/access_token/生成的token,此token需要用户授权。
openId string 通过/oauth/access_token/获取,用户唯一标志
optional *EnterpriseGrouponOfflineOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a EnterpriseGrouponOfflineOpts struct

Name Type Description Notes

body | optional.Interface of EnterpriseGrouponOfflineReq| |

Return type

EnterpriseGrouponOfflineRsp

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EnterpriseGrouponSave

EnterpriseGrouponSaveRsp EnterpriseGrouponSave(ctx, accessToken, openId, optional)

创建团购活动

创建团购活动

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accessToken string 调用/oauth/access_token/生成的token,此token需要用户授权。
openId string 通过/oauth/access_token/获取,用户唯一标志
optional *EnterpriseGrouponSaveOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a EnterpriseGrouponSaveOpts struct

Name Type Description Notes

body | optional.Interface of EnterpriseGrouponSaveReq| |

Return type

EnterpriseGrouponSaveRsp

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]