0.2.0 • Published 6 years ago
api-collection v0.2.0
Api Center
About
Get data without api
Installation
yarn add api-collection
Features
- API from 'https://api.github.com'
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)
- GET /users/:username
- GET /user (authenticated)
- GET /users/:username/followers
- GET /user/followers (authenticated)
- GET /users/:username/starred
- GET /user/starred (authenticated)
0.2.0
6 years ago
0.1.9
6 years ago
0.1.8
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago