C# Class PodioAPI.Services.IntegrationService

Mostrar archivo Open project: podio/podio-dotnet

Public Methods

Method Description
CreateIntegration ( int appId, string type, bool silent, dynamic config ) : Task

Creates a new integration on the app.

Podio API Reference: https://developers.podio.com/doc/integrations/create-integration-86839

DeleteIntegration ( int appId ) : Task

Deletes the integration from the given app.

Podio API Reference: https://developers.podio.com/doc/integrations/delete-integration-86876

GetAvailableFields ( int appId ) : Task>

Returns the fields available from the configuration.

Podio API Reference: https://developers.podio.com/doc/integrations/get-available-fields-86890

GetIntegration ( int appId ) : Task

Returns the integration with the given id.

Podio API Reference: https://developers.podio.com/doc/integrations/get-integration-86821

IntegrationService ( Podio currentInstance ) : System.Collections.Generic
RefreshIntegration ( int appId ) : Task

Refreshes the integration. This will update all items in the background.

Podio API Reference: https://developers.podio.com/doc/integrations/refresh-integration-86987

UpdateIntegration ( int appId, bool silent, dynamic config ) : Task

Updates the configuration of the integration. The configuration depends on the type of integration.

Podio API Reference: https://developers.podio.com/doc/integrations/update-integration-86843

UpdateIntegrationMapping ( int appId, string>.Dictionary fields ) : Task

Updates the mapping between the fields of the app and the fields available from the integration.

Podio API Reference: https://developers.podio.com/doc/integrations/update-integration-mapping-86865

Method Details

CreateIntegration() public method

Creates a new integration on the app.

Podio API Reference: https://developers.podio.com/doc/integrations/create-integration-86839

public CreateIntegration ( int appId, string type, bool silent, dynamic config ) : Task
appId int
type string The type of integration, see the area for available types
silent bool True if updates should be silent, false otherwise
config dynamic The configuration of the integration, which depends on the above type,
return Task

DeleteIntegration() public method

Deletes the integration from the given app.

Podio API Reference: https://developers.podio.com/doc/integrations/delete-integration-86876

public DeleteIntegration ( int appId ) : Task
appId int
return Task

GetAvailableFields() public method

Returns the fields available from the configuration.

Podio API Reference: https://developers.podio.com/doc/integrations/get-available-fields-86890

public GetAvailableFields ( int appId ) : Task>
appId int
return Task>

GetIntegration() public method

Returns the integration with the given id.

Podio API Reference: https://developers.podio.com/doc/integrations/get-integration-86821

public GetIntegration ( int appId ) : Task
appId int
return Task

IntegrationService() public method

public IntegrationService ( Podio currentInstance ) : System.Collections.Generic
currentInstance Podio
return System.Collections.Generic

RefreshIntegration() public method

Refreshes the integration. This will update all items in the background.

Podio API Reference: https://developers.podio.com/doc/integrations/refresh-integration-86987

public RefreshIntegration ( int appId ) : Task
appId int
return Task

UpdateIntegration() public method

Updates the configuration of the integration. The configuration depends on the type of integration.

Podio API Reference: https://developers.podio.com/doc/integrations/update-integration-86843

public UpdateIntegration ( int appId, bool silent, dynamic config ) : Task
appId int
silent bool
config dynamic
return Task

UpdateIntegrationMapping() public method

Updates the mapping between the fields of the app and the fields available from the integration.

Podio API Reference: https://developers.podio.com/doc/integrations/update-integration-mapping-86865

public UpdateIntegrationMapping ( int appId, string>.Dictionary fields ) : Task
appId int
fields string>.Dictionary Field id and the external id for the given field id
return Task