Skip to content

fython-tools/du-express-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express API

Examples

Read codes in index.js

Init

const ExpressApi = require('./src/api');
const api = new ExpressApi();
const api = new ExpressApi({ tokenV2, cookie }); // Optional, you can load tokenV2 and cookie from last state. But we recommend to init new token every launch.

await api.init(); // If tokenV2 and cookie is loaded from last state, you can skip this call.

Get

const data = await api.get(packageNo, {company: companyCode});

If you don't know which company is carrying this package, you can ignore company options.

const data = await api.get(packageNo);

License

No Licenses. Just use as you like.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published