0.1.11 • Published 2 years ago

pyatka-sdk v0.1.11

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

pyatka-sdk

Initialize

const client = new Initialize({
    baseURL: 'https://example.com',
    useProxy: false,
});

Use Interceptors

client.axios.interceptors.request.use(
    Interceptors.onRequest,
    Interceptors.onRequestError
);
client.axios.interceptors.response.use(
    Interceptors.onResponse,
    Interceptors.onResponseError
);

Set Header

client.setHeader('Accept-language', 'ru');

Endpoints

client.getCities();
client.getStaticPage('kontakty');
client.getProducts({
    category_id: 667,
    page: 5
});

Fetch Functions

client.fetch('sra_profile'); // {baseURL}/api/4.0/sra_profile
client.fetchGW('company/v1/cities'); // {baseURL}/gw/company/v1/cities
0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago