Skip to content

Latest commit

 

History

History
142 lines (81 loc) · 4.44 KB

EnterpriseImCardApi.md

File metadata and controls

142 lines (81 loc) · 4.44 KB

\EnterpriseImCardApi

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

Method HTTP request Description
EnterpriseImCardDelete Post /enterprise/im/card/delete 删除消息卡片
EnterpriseImCardList Get /enterprise/im/card/list 获取消息卡片列表
EnterpriseImCardSave Post /enterprise/im/card/save 创建/更新消息卡片

EnterpriseImCardDelete

EnterpriseImCardDeleteRsp EnterpriseImCardDelete(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 *EnterpriseImCardDeleteOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a EnterpriseImCardDeleteOpts struct

Name Type Description Notes

body | optional.Interface of EnterpriseImCardDeleteReq| |

Return type

EnterpriseImCardDeleteRsp

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]

EnterpriseImCardList

EnterpriseImCardListRsp EnterpriseImCardList(ctx, accessToken, openId, cursor, count)

获取消息卡片列表

获取消息卡片列表

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/获取,用户唯一标志
cursor int64 分页游标, 第一页请求cursor是0, response中会返回下一页请求用到的cursor, 同时response还会返回has_more来表明是否有更多的数据。
count int64 每页数量

Return type

EnterpriseImCardListRsp

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]

EnterpriseImCardSave

EnterpriseImCardSaveRsp EnterpriseImCardSave(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 *EnterpriseImCardSaveOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a EnterpriseImCardSaveOpts struct

Name Type Description Notes

body | optional.Interface of EnterpriseImCardSaveReq| |

Return type

EnterpriseImCardSaveRsp

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]