1.0.20 • Published 1 year ago
@cloudos/gitee-api v1.0.20
��
About The Project
This library provides easy-to-use javascript/typescript apis to access gitee.com data like user info, repo, branch and files;
Built With
- typescript
- axios
Getting Started
- Install this library
npm i @cloudos/gitee-api
oryarn add @cloudos/gitee-api
. - Using the apis in your code;
import giteeApi from '@cloudos/gitee-api';
client=giteeApi.createGiteeClient({accessToken:"xxx"});
client.File.add({owner:"your-gitee-username",repo:"your-gitee-repo",path:"/test.txt",content:"test message for gitee api",message:"add file /test.txt", branch:"master"}).then(()=>{
console.log("Success.");
});
Usage
Check the apis defined in the code (src/index.ts), it's not complicated.
License
MIT License.