Search
Search
Search
Search
Information
Information
Light
Dark
Open actions menu
Basic upload method
Bypass upload method
Tips!
If you encounter an error (by firewall) while uploading using both methods,
try changing extension of the file before uploading it and rename it right after.
This uploader supports multiple file upload.
Submit
~
var
www
podio-api-client
lib
modules
api
File Content:
Integration.js
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const Api_1 = __importDefault(require("./Api")); class Integration extends Api_1.default { constructor(props) { super(props); } /** * Creates a new integration on the app * @param app_id * @param attributes * @returns */ create(app_id, attributes) { const requestObj = { method: 'post', url: `/integration/${app_id}`, data: attributes, }; return this._httpRequest(requestObj); } /** * Deletes the integration from the given app. * @param app_id * @returns */ delete(app_id) { const requestObj = { method: 'delete', url: `/integration/${app_id}`, }; return this._httpRequest(requestObj); } /** * Returns the fields available from the configuration. * @param app_id * @returns */ getFields(app_id) { const requestObj = { method: 'get', url: `/integration/${app_id}/field/`, }; return this._httpRequest(requestObj); } /** * Returns the integration with the given id. * @param app_id * @returns */ get(app_id) { const requestObj = { method: 'get', url: `/integration/${app_id}`, }; return this._httpRequest(requestObj); } /** * Updates the configuration of the integration. * The configuration depends on the type of integration. * @param app_id * @param attributes * @returns */ update(app_id, attributes) { const requestObj = { method: 'put', url: `/integration/${app_id}`, data: attributes, }; return this._httpRequest(requestObj); } /** * Updates the mapping between the fields of the app and the fields available from the integration. * @param app_id * @param attributes * @returns */ updateMapping(app_id, attributes) { const requestObj = { method: 'put', url: `/integration/${app_id}/mapping`, data: attributes, }; return this._httpRequest(requestObj); } } exports.default = Integration;
Edit
Download
Unzip
Chmod
Delete