Giter Club home page Giter Club logo

pixel-api's Introduction

Pixel-Api

Server

  • 使用 Nodejs + Express 开发
  • 实现 Oauth登录,查看最新微博,查看单条微博评论,个人主页,我的关注,我的粉丝,发微博以及四种消息(@我的微博,@我的评论,收到的评论,发出的评论)
  • 后续接口我会继续开发,同时欢迎 Pull Request!

Run

npm install node app.js

Api

access_token

POST /oauth2/access_token 获取 Oauth2 token

weibos

GET /statuses/home_timeline.json 获取当前登录用户及其所关注用户的最新微博

GET /statuses/public_timeline.json 获取最新的公共微博

GET /statuses/user_timeline.json 获取用户发布的微博

users

GET /users/show.json 获取用户信息

comments

GET /comments/show.json 获取某条微博的评论列表

send weibo

POST /statuses/update.json 发布一条微博信息

POST /statuses/upload.json 上传图片并发布一条微博

notify

GET /statuses/mentions.json 获取@当前用户的最新微博

GET /comments/mentions.json 获取@到我的评论

GET /comments/to_me.json 我收到的评论列表

GET /comments/by_me.json 我发出的评论列表

friendships

GET /friendships/followers.json 获取用户粉丝列表

GET /friendships/friends.json 获取用户的关注列表

Issue

  • POST /statuses/upload.json 上传图片并发布一条微博 该接口调用不成功,总是返回 {"error":"auth by Null spi!","error_code":21301,"request":"/2/statuses/upload.json"} 不知道是微博接口的限制还是我这边上传出错,有知道的同学希望可以帮助我一下

LICENSE

Apache License

pixel-api's People

Contributors

werbhelius avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.