channel.org

Description

Provides methods to retrieve and alter organization trust relationships for a channel.

Namespace:

channel.org

Method: disableAccess

HTTP POST

Description:

Disable access to the channel for the given organization.

Parameters:

  • string sessionKey

  • string label - label of the channel

  • int orgId - ID of org being removed access

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: enableAccess

HTTP POST

Description:

Enable access to the channel for the given organization.

Parameters:

  • string sessionKey

  • string label - label of the channel

  • int orgId - ID of org being granted access

Returns:

  • int - 1 on success, exception thrown otherwise.

Method: list

HTTP POST

Description:

List the organizations associated with the given channel that may be trusted.

Parameters:

  • string sessionKey

  • string label - label of the channel

Returns:

  • array :

    • struct org

      • int "org_id"

      • string "org_name"

      • boolean "access_enabled"