123yun-share
v1.0.0
Published
Utility to parse 123yun-share links
Downloads
7
Readme
123yun-share
Utility for create and parse 123yun shares
Usage
import {OneTwoThreeShare} from "./ott";
const ott = new OneTwoThreeShare({ // all optional
redis: { uri: 'redis://localhost:6379' } // Redis if needed
credentials: { // needed if creating share
username: '',
password: '',
}
httpOptions: { // options for axios
timeout: 30000,
headers: {
'User-Agent': '123yun-share',
},
}
});
const link = await ott.parse('https://www.123pan.com/s/wY88Vv-oTbsd', {
password: '' // share password
clientIp: '1.1.1.1' // if requesting for another client
});