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 | 创建团购活动 |
EnterpriseGrouponDetailRsp EnterpriseGrouponDetail(ctx, accessToken, openId, optional)
团购活动详情
团购活动详情
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 are passed through a pointer to a EnterpriseGrouponDetailOpts struct
Name | Type | Description | Notes |
---|
grouponIds | optional.Interface of []string| 团购活动的Id |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EnterpriseGrouponListRsp EnterpriseGrouponList(ctx, accessToken, openId, count, optional)
团购活动列表
团购活动列表
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 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 中止 |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EnterpriseGrouponOfflineRsp EnterpriseGrouponOffline(ctx, accessToken, openId, optional)
团购活动下线
团购活动下线
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 are passed through a pointer to a EnterpriseGrouponOfflineOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of EnterpriseGrouponOfflineReq| |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EnterpriseGrouponSaveRsp EnterpriseGrouponSave(ctx, accessToken, openId, optional)
创建团购活动
创建团购活动
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 are passed through a pointer to a EnterpriseGrouponSaveOpts struct
Name | Type | Description | Notes |
---|
body | optional.Interface of EnterpriseGrouponSaveReq| |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]