Documentation ¶
Index ¶
- type Client
- func (comp *Client) DraftAdd(ctx context.Context, data *request.RequestDraftAdd) (*response.ResponseDraftAdd, error)
- func (comp *Client) DraftBatchGet(ctx context.Context, data *request.RequestBatchGet) (*response.ResponseBatchGet, error)
- func (comp *Client) DraftCheckSwitch(ctx context.Context) (*response.ResponseCheckSwitch, error)
- func (comp *Client) DraftCount(ctx context.Context) (*response.ResponseDraftCount, error)
- func (comp *Client) DraftDelete(ctx context.Context, mediaID string) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) DraftGet(ctx context.Context, mediaID string) (*response.ResponseDraftGet, error)
- func (comp *Client) DraftSwitch(ctx context.Context) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) DraftUpdate(ctx context.Context, data *request.RequestDraftUpdate) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) PublishBatchGet(ctx context.Context, data *request.RequestBatchGet) (*response.ResponseBatchGet, error)
- func (comp *Client) PublishDelete(ctx context.Context, articleID string, index int) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) PublishGet(ctx context.Context, publishID string) (*response.ResponsePublishGet, error)
- func (comp *Client) PublishGetArticle(ctx context.Context, articleID string) (*response.ResponsePublishGetArticle, error)
- func (comp *Client) PublishSubmit(ctx context.Context, mediaID string) (*response.ResponsePublishSubmit, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*kernel.BaseClient
}
func RegisterProvider ¶
func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)
func (*Client) DraftAdd ¶
func (comp *Client) DraftAdd(ctx context.Context, data *request.RequestDraftAdd) (*response.ResponseDraftAdd, error)
新建草稿 https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Add_draft.html
func (*Client) DraftBatchGet ¶
func (comp *Client) DraftBatchGet(ctx context.Context, data *request.RequestBatchGet) (*response.ResponseBatchGet, error)
获取草稿列表 https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Count_drafts.html
func (*Client) DraftCheckSwitch ¶
M检查P端开关 https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Temporary_MP_Switch.html
func (*Client) DraftCount ¶
获取草稿总数 https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Count_drafts.html
func (*Client) DraftDelete ¶
func (comp *Client) DraftDelete(ctx context.Context, mediaID string) (*response2.ResponseOfficialAccount, error)
删除草稿 https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Delete_draft.html
func (*Client) DraftGet ¶
func (comp *Client) DraftGet(ctx context.Context, mediaID string) (*response.ResponseDraftGet, error)
获取草稿 https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Get_draft.html
func (*Client) DraftSwitch ¶
MP端开关 https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Temporary_MP_Switch.html
func (*Client) DraftUpdate ¶
func (comp *Client) DraftUpdate(ctx context.Context, data *request.RequestDraftUpdate) (*response2.ResponseOfficialAccount, error)
修改草稿 https://developers.weixin.qq.com/doc/offiaccount/Draft_Box/Update_draft.html
func (*Client) PublishBatchGet ¶
func (comp *Client) PublishBatchGet(ctx context.Context, data *request.RequestBatchGet) (*response.ResponseBatchGet, error)
获取成功发布列表 https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_publication_records.html
func (*Client) PublishDelete ¶
func (comp *Client) PublishDelete(ctx context.Context, articleID string, index int) (*response2.ResponseOfficialAccount, error)
删除发布 https://developers.weixin.qq.com/doc/offiaccount/Publish/Delete_posts.html
func (*Client) PublishGet ¶
func (comp *Client) PublishGet(ctx context.Context, publishID string) (*response.ResponsePublishGet, error)
发布状态轮询接口 https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_status.html
func (*Client) PublishGetArticle ¶
func (comp *Client) PublishGetArticle(ctx context.Context, articleID string) (*response.ResponsePublishGetArticle, error)
通过 article_id 获取已发布文章 https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_article_from_id.html
func (*Client) PublishSubmit ¶
func (comp *Client) PublishSubmit(ctx context.Context, mediaID string) (*response.ResponsePublishSubmit, error)
发布接口 https://developers.weixin.qq.com/doc/offiaccount/Publish/Publish.html