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?
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.