Basic connection
Connection is a link between Make and 3rd party service/app.
Basic type of connection is a group of connections, which can use:
API Key,
Basic Auth (a pair of username and password
base64
encoded),Digest Auth (a pair of credentials
md5
hashed).
Basic Connection can also be used, when API doesn't support OAuth 1/2.
Components
pageCommunication
aws
directive is not availableOnly a single request can be performed
pagination
directive is not availableresponse.limit
is not availableresponse.iterate
directive is not availableresponse.output
is not availableresponse
is extended withdata
,uid
andmetadata
response.data
The data
directive saves data to the connection so that it can be later accessed from a module through the connection
variable. It functions similarly to the temp
directive, except that data
is persisted in the connection.
Example:
This accessToken
can be later accessed in any module that uses this connection like so:
response.metadata
The metadata
directive allows you to save the user’s name or username (or any other text field) so that multiple connections of the same type could be easily recognized. A common practice is to save either username or email or full name to metadata.
The metadata object has 2 properties: value
and type
. value
is used to store the value and type
is used to specify what the value is. Currently, there are only 2 types: email
and text
.
Example:
response.uid
This directive allows you to save the user’s remote service Id. This is required when using Shared Webhooks.
Example:
pageParameters
Parameters that the user should fill while creating a new connection.
pageConnections
Non-user-specific sensitive values like salts or secrets.
Available IML variables
These IML variables are available for you to use everywhere in this module:
now
- Current date and time.environment
- TBDtemp
- Contains custom variables created viatemp
directive.parameters
- Contains the connection’s input parameters.common
- Contains connection’s common data collection.data
- Contains connection's data collection.oauth.scope
- Contains an array of scope required to be passed to OAuth 2.0 authorization process.oauth.redirectUri
- Contains redirect URL for OAuth 2.0 authorization process.
Example
Here you can see an example of API key-based connection.
Last updated