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



  • 相关阅读:
    Mysql使用存储过程快速添加百万数据
    ArcMap连接远程数据库报错“ Connection was attempted with an older version of SQL Server client communications software that is not supported.”
    uart write example
    Solution to errors like /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found
    读.txt数据并合并~读npy数据并合并
    JVM类加载路径查看
    磨人的R语言安装问题(以安装monocle为例)
    js 删除数组几种方法
    vue 脚手架运行报错常见问题--'webpack-dev-server' 不是内部或外部命令,也不是可运行的程序 或批处理文件
    vue 脚手架运行报错常见问题--vue-cli Failed to download repo vuejs-templates/webpack
  • 原文地址:https://www.cnblogs.com/marryZhan/p/2497563.html
Copyright © 2011-2022 走看看