api-collection

0.2.0 • Public • Published

Api Center

About

Get data without api

Installation

yarn add api-collection

Features

Quick Start

Start with Demo

git clone 'https://github.com/tangweikun/api'
cd api
cd examples
yarn // or 'npm install'
yarn watch // or npm run watch

Start with your own project

// 1. Install `api-collection`
yarn add api-collection

// 2. Import from `api-collection`
import { github } from 'api-collection'

// 3. Get the data
const username = 'tangweikun'
github('userInfo', { username }).then(data => console.log(data))

Document

github (https://api.github.com)

users

  • GET /users/:username
  • GET /user (authenticated)

followers

  • GET /users/:username/followers
  • GET /user/followers (authenticated)

starred

  • GET /users/:username/starred
  • GET /user/starred (authenticated)

Readme

Keywords

none

Package Sidebar

Install

npm i api-collection

Weekly Downloads

18

Version

0.2.0

License

MIT

Unpacked Size

142 kB

Total Files

16

Last publish

Collaborators

  • tangweikun