All Projects → nondanee → Jike-Bus

nondanee / Jike-Bus

Licence: MIT License
🚍 即刻 Ⓙ SDK for Node.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Jike-Bus

jikeme
命令行摸 🐟工具
Stars: ✭ 53 (+140.91%)
Mutual labels:  jike
jike-sdk
Ⓙ Jike SDK for Node.js / Deno / browser
Stars: ✭ 34 (+54.55%)
Mutual labels:  jike
jike-third-party-developer
即刻第三方开发者与项目
Stars: ✭ 65 (+195.45%)
Mutual labels:  jike
Rsshub
🍰 Everything is RSSible
Stars: ✭ 18,111 (+82222.73%)
Mutual labels:  jike

Jike Bus 🚍

Jike Bus 🚍 是即刻镇的公交专线,有卡刷卡,投币一元。

Quick Start

$ npm install nondanee/Jike-Bus

等 Todo 完成后再发布到 npm, 现阶段可以从 Github repository 安装尝鲜 咕了

const jike = require('jike')

;(async () => {
    const j = jike.JikeClient(refreshToken, deviceId)
    const myProfile = await j.getUserProfile()
    const myPost = await j.getUserPost(myProfile.username)
    await j.likeIt(myPost[0]) // 😏
})()

Usage

还未实现扫码登录部分,初始化客户端要求传入 x-jike-refresh-token,部分用户需要传入 x-jike-device-id (原因未知)

支持的接口请参考 Sorosliu1029/Jike-MetroAPI 文档

基本上把 Python 的下划线方法名改成驼峰命名就行了,返回类型均为 Promise (部分方法名有改动)

分页信息流 loadMore()loadAll() 与 Jike Metro 功能一致

只是 Web API 请求的简单封装,比较丑陋,不关心返回字段改动 (不固定字段,全看官方心情)

目前为止还是 0 dependency

Feature

  • 获取自己的收藏,查看自己的用户信息
  • 流式获取首页消息和动态
  • 获取某个用户的用户信息、发布的动态、创建的主题、关注的主题、TA 关注的人和关注 TA 的人
  • 获取某条消息 / 动态 / 评论的评论 / 回复
  • 获取某个主题下的精选和广场
  • 发布个人动态 (可带图、带链接、带主题),删除个人动态
  • 点赞、收藏、评论 / 删除评论、转发某条消息 / 动态
  • 在浏览器中打开某条消息的原始链接
  • 根据关键词搜索主题
  • 根据关键词搜索自己的收藏
  • 获取即刻首页的推荐关注主题列表(不限于首页显示的5个)

Jike Metro 乘车体验 中提到的所有 feature

Todo

Reference

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].