0.1.11 • Published 1 year ago
pyatka-sdk v0.1.11
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
1 year ago
0.1.10
1 year ago
0.1.9
1 year ago
0.1.8
1 year ago
0.1.7
1 year ago
0.1.6
1 year ago
0.1.5
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.2
1 year ago
0.1.1
1 year ago
0.0.12
1 year ago
0.0.11
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago