UNPKG

@snapp-store/snapp-box-sdk

Version:
30 lines (29 loc) 919 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PullingService = void 0; class PullingService { constructor(httpRequest) { this.httpRequest = httpRequest; } /** * Pull Events * If there are some failure during webhook calls we put your events on your pulling channel and you can use your customer token to fetch all failed messages with this API. * @param authorization Customer Token * @returns PullingEventDTO Success * @throws ApiError */ getV1Pulling(authorization) { return this.httpRequest.request({ method: 'GET', url: '/v1/pulling', headers: { 'Authorization': authorization, }, errors: { 401: `UnAuthorized`, 403: `Forbidden`, }, }); } } exports.PullingService = PullingService;