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
https://api.github.com)
github (- GET /users/:username
- GET /user (authenticated)
- GET /users/:username/followers
- GET /user/followers (authenticated)
- GET /users/:username/starred
- GET /user/starred (authenticated)