MCPcopy
hub / github.com/027xiguapi/code-box / send

Method send

server/WechatSender.js:69–80  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

67 }
68
69 async send(event) {
70 try {
71 const accessToken = await this.getAccessToken()
72 const mediaId = await this.addDraft(accessToken, event)
73 const articleId = await this.publishArticle(accessToken, mediaId)
74 console.log(`Article published successfully. Article ID: ${articleId}`)
75 return articleId
76 } catch (error) {
77 console.error("Error in WechatSender:", error.message)
78 throw error
79 }
80 }
81}
82
83export default WechatSender

Callers 15

PlasmoOverlayFunction · 0.80
PlasmoOverlayFunction · 0.80
PlasmoOverlayFunction · 0.80
PlasmoOverlayFunction · 0.80
PlasmoOverlayFunction · 0.80
PlasmoOverlayFunction · 0.80
PlasmoOverlayFunction · 0.80
PlasmoOverlayFunction · 0.80
PlasmoOverlayFunction · 0.80
PlasmoOverlayFunction · 0.80
PlasmoOverlayFunction · 0.80
PlasmoOverlayFunction · 0.80

Calls 3

getAccessTokenMethod · 0.95
addDraftMethod · 0.95
publishArticleMethod · 0.95

Tested by

no test coverage detected