Home > Backend Development > PHP Tutorial > WeChat public platform event picture storage, how to obtain Qiniu Space link? How to upload user pictures to Qiniu?

WeChat public platform event picture storage, how to obtain Qiniu Space link? How to upload user pictures to Qiniu?

WBOY
Release: 2016-08-04 09:20:41
Original
1055 people have browsed it

WeChat public platform event picture storage, how to obtain Qiniu Space link? How to upload user pictures to Qiniu?

Reply content:

WeChat public platform event picture storage, how to obtain Qiniu Space link? How to upload user pictures to Qiniu?

For Qiniu-related information, you must check out the documentation provided by Qiniu!
For WeChat-related information, of course, check out the documents provided by WeChat!

However, you can briefly talk about the processing flow (process):
1. WeChat authorization requires access_toke and the like through nauth_token. Before that, appid, appkey, etc. are definitely needed.
2. To upload pictures on WeChat, use the API (js or native) provided by WeChat. It is first uploaded to WeChat's server (it will be saved for about 2-3 days, I forgot the specific time), and then provided by WeChat. api gets the uploaded pictures from WeChat;
3. Upload the pictures to Qiniu, use the pictures obtained from WeChat in 2, and then use Qiniu's upload to save the pictures to Qiniu;
4. Get the pictures from Qiniu ( If you don’t go through authorization, just correspond to the backet directly);

The processing process is probably like this. Debugging on the WeChat side is troublesome, especially because there are many details that need to be paid attention to. There are also quite a few people who have encountered pitfalls on the Internet. If you look for relevant information, you will probably encounter the same pitfalls because you are not lying. Yes, haha.

Related labels:
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