Home > Backend Development > PHP Tutorial > 微信平台开发模式如何调用已上传的图文素材?

微信平台开发模式如何调用已上传的图文素材?

WBOY
Release: 2016-06-06 20:46:16
Original
1177 people have browsed it

如题。
我通过微信官方的管理界面上传了一些图文素材,怎么样在开发模式中调用?

回复内容:

如题。
我通过微信官方的管理界面上传了一些图文素材,怎么样在开发模式中调用?

看你能不能取回该素材的 media_id了,一般通过API上传图文素材时,是会返回一个media_id的,你可以通过这个media_id来发送图文消息给用户,例如:

<code class="lang-json">{
    "msgtype": "mpnews",
    "mpnews": {
        "media_id":"XXXXXXXXX"
    }
}
</code>
Copy after login
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template