TrophyCustomer's Canvas is honored with a 2020 InterTech Technology Award! Learn more 

ISocialNetworkSourceConfig Interface

A structure defining the API key of social networking services.

example

clientConfig.json

{
  "assetSources": {
    "Facebook": {
      "type": "SocialNetworkSource",
      "network": "facebook",
      "apiKey": "123456789012345"
    },
    "Instagram": {
      "type": "SocialNetworkSource",
      "network": "instagram",
      "apiKey": "88884444aaaa222288883333ffff6666"
    }
  },
  "widgets": {
    "Toolbox": { "buttons": [ "Image" ] }, 
    "AssetManager": {
      "tabs": [
        {
          "name": "Facebook",
          "assetSourceInstance": "Facebook",
        },
        {
          "name": "Instagram",
          "assetSourceInstance": "Instagram",
        }
      ]
    }
  }
}

Properties

Optional actionMode

actionMode: IActionModeParsed

apiKey

apiKey: string

The key required to use an API of the social networking service.

network

network: "instagram" | "facebook"

The name of a social networking service.

type

type: "SocialNetworkSource"