npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tietuku

v0.1.2

Published

sdk for tietuku

Downloads

5

Readme

tietuku nodejs SDK

##介绍 贴图库API nodejs SDK,实现了以下接口

  1. 图片
    1. 上传
    2. 查询单张图片详细信息
  2. 相册接口
    1. 获取相册列表
    2. 创建相册
    3. 编辑相册
    4. 删除相册
  3. 列表接口
    1. 随机30张推荐的图片
    2. 全部图片列表
    3. 获取相册内图片
    4. 通过一组图片ID获取列表(只是接口,没有实现)
  4. 分类接口
    1. 查询所有的分类

##注意 列表接口中的随机30张推荐的图片全部图片列表都跟本身账号无关,是贴图库所有图片的列表。

通过一组图片ID获取列表。根本没地方可以获取图片ID。。。上传的时候也没有返回ID

分类接口是个坑,只能查询贴图本身设置的所有分类,不能添加自己的分类。 贴图库的老大们别打我,我只是吐槽一下^_^

##使用(具体参数请参考贴图库文档)

npm install tietuku --save

var tietuku = require('tietuku');

tietuku.api.Img.upload(image, aid, from, name)
tietuku.api.Img.getDetail(id, findurl)

tietuku.api.Album.getList(uid)
tietuku.api.Album.create(name)
tietuku.api.Album.edit(aid, name)
tietuku.api.Album.remove(aid)

tietuku.api.List.random30(cid)
tietuku.api.List.all(page_no, cid)
tietuku.api.List.fromAlbum(aid, page_no)

##感谢 贴图库提供免费的图床可以让我这等穷屌能做一些自己的应用,表示一万个感谢,虽然我吐槽了你们很多,包括你们的API,但我是真心爱你们的哟~

faceair 提供的生成Token的gist,不然估计够我折腾一会gist地址