2.0.0 • Published 3 years ago
wykop-v2 v2.0.0
wykop-v2-js
Wykop API v2 SDK in TypeScript
This code simplifies using the Wykop API in Node.js applications.
To use it in your project:
$ npm install wykop-v2
# or
$ yarn add wykop-v2
TypeScript declaration files are included.
Wykop API keys can be generated here: https://www.wykop.pl/dla-programistow/nowa-aplikacja/
Wykop API documentation can be found here: https://www.wykop.pl/dla-programistow/apiv2docs/. Also the old API documentation is useful if anything is unclear in the new API docs.
import Wykop from 'wykop-v2';
// or in CommonJS:
const Wykop = require('wykop-v2');
const wykop = new Wykop({
// These are default values.
appkey: 'aNd401dAPp',
secret: '',
host: 'a2.wykop.pl',
userAgent: `wykop-v2-js/dev`,
});
wykop.login({
login: 'm__b',
accountkey: 'accountkey', // Get it with Wykop Connect
// You can use the password instead of accountkey, if on a Maciej key.
// Note that this way you must also do 2FA if it's enabled on the account
// password: 'P455phR453'
}).then(() => wykop.request('entries/voteup', {
api: ['6820916'],
}));
2.0.0
3 years ago
1.1.0
6 years ago
1.0.0
7 years ago
0.3.13
7 years ago
0.3.11
7 years ago
0.3.10
7 years ago
0.3.9
7 years ago
0.3.8
7 years ago
0.3.7
7 years ago
0.3.6
7 years ago
0.3.5
7 years ago
0.3.4
7 years ago
0.3.3
7 years ago
0.3.2
7 years ago
0.3.1
7 years ago
0.3.0
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.0
7 years ago
0.0.1
7 years ago