{ "animations": { "in": { "id:loading": "loadshow" }, "out": { "id:loading": "loadhide" } }, "listening":"id:loading" }
{(MainTitle)}成功拼出微博图床API-Bottle小站{(MainTitleEnd)}{(PostTitle)}成功拼出微博图床API{(PostTitleEnd)}{(PostDate)}20180430{(PostDateEnd)}{(PostContent)}  最近一直在找一种稳定不容易掉线的图床,绕了一大圈,似乎最佳选择是V2EX网友的作品sm.ms。 突然我灵光一闪,想起了*卜卜口*的微博图片上传API—— ![TIM截图20180430231424.png](https://cdn2.imbottle.com/uploads/smms/5ae73304569d9.png) 但可惜的是,这个API最近页头跨站抽风没法用了.....我于是异想天开想自己搞个微博图床上传的API...   结果发现微博的制度比我想象中要严格...图床不能直接上传,必须要登录并***传递Cookie进行验证***. 我于是踏上了拼代码的征程... ------------------------------------- #### 参考资料: <https://www.cnblogs.com/loveyouyou616/p/4238230.html> <https://mkblog.cn/854/> -------------------------------------- 这两则资料算是很难得的了....最后通过非常奇怪的方法,我把他们拼凑在了一起,这个API竟然诞生了!OAO 你肯定猜不出我当时有多兴奋! ![](https://api.xbottle.top/i.php?u=https://wx4.sinaimg.cn/large/ed039e1fgy1fqv3jrdibtj212e0d73zc) ![](https://api.xbottle.top/i.php?u=https://wx4.sinaimg.cn/large/ed039e1fgy1fqv3kesxpmj20jo08kgls) ----------------------------------------- 用API搭建的极简图床(笑)(´▽`ʃƪ): <https://imbottle.com/pic> API地址: <https://api.imbottle.com/wup.php> API文档:(其中附赠**DEMO**哦!好好玩吧!) <https://api.imbottle.com/doc/weibopicapi.html> ![](https://api.xbottle.top/i.php?u=https://wx4.sinaimg.cn/large/ed039e1fgy1fr21c7ondij20j60gvwew){(PostContentEnd)}{(PostTag)}日常,咸鱼技术{(PostTagEnd)}{(PostID)}203{(PostIDEnd)}{(PostCover)}{(PostCoverEnd)}
{(PageType)}post.otp.html{(PageTypeEnd)}