zoukankan      html  css  js  c++  java
  • 新浪微博 OAuth2 NodeJs发微博

    想用nodejs写个微博客户端发微博,无奈新浪微博的nodejs sdk是OAuth1.0的。
    只能自己根据OAuth1.0 改了改。
    只写了statuses/update 和 statuses/upload,其他的实现基本都类似了。
    update是简单参数的post,upload是multipart 包含二进制图片的post。
    改改帐号参数和发送的图片路径,node weibotest.js就能成功发送了。
    如果中文出现乱码,请把这两个js文件保存成utf-8编码。


    weibo.js


    weibotest.js



  • 相关阅读:
    调用组件的C++代码
    如何用C语言读写文件
    linux 常用命令总结(tsg)
    com.mysql.jdbc.MysqlDataTruncation: Data trunca...
    SpringMVC配置
    中文转换成Unicode编码 和 Unicode编码转换为中文
    在visual studio中运行C++心得
    博客园博客转至个人网站博客声明
    Seafile安装踩坑
    不要因为走得太远,而忘了自己的初心
  • 原文地址:https://www.cnblogs.com/marryZhan/p/2497563.html
Copyright © 2011-2022 走看看