User.com
Authentication
To authenticate the http://User.com connector you will need your application's subdomain and API Key.
Obtaining Your Authentication Credentials
Select an existing application or create a new one. You must provide a subddomain for your application upon it's creation
From your selected application's dashboard, navigate to Settings > Setup & integrations
You will be redirected to a page where your application's key and subdomain are presented. (Note: This API Key is not to be confused with the API Key used for authentication, the API Key used for authentication will be a 64 character length string)
Using the credentials obtained in step 4, you can now access your Public REST API Key (used for authentication) at the following location:
https://Subdomain.user.com/api/ApplicationKey/credentials/
So with the example credentials above our URL would be:
https://example.user.com/api/ABC123/credentials/
Your Public REST API key should be present, if not you can generate a new one
Connector Setup
Locate the http://User.com connector
Cyclr Console > Connectors > Connector Library > http://User.com
From the Edit Connector interface click 'Setup'
Enter your Subdomain, click 'Next'
Enter your API Key (64 character Public REST API key), click 'Next'
The connector is now authenticated and ready to use.
Webhooks
You can configure webhooks so that the completion of specific events triggers the step.
In this example, the creation of a new user triggers the webhook, and you can use the cycle to retrieve that user's details.
Create http://User.com automation
To configure the a webhook, you need to create an automation within http://User.com :
From your selected application's dashboard, go to Automations.
From the Automations page, select Create automation.
From the Triggers menu, drag the New user trigger onto the automation builder.
From the Actions menu, drag the Api call action onto the automation builder.
Get the Webhook URL in Cyclr
In the template builder, drag the User Created webhook and Get User By ID method onto the grid.
Select Step setup on the User Created webhook to show the URL.
Configure the automation in http://User.com
In the http://User.com automation builder, select the API call module to configure it's settings
Enter the webhook's URL, add the header
Content-Type: application/json
, and select Save.From the top-right corner of the automation builder, select Save and exit.
Enter a name for the automation. From the Timing drop-down, select Each time the condition is met, make sure Run this action - enable is activated, and select Save.
Set up the webhook in Cyclr
In the Cyclr template builder, select Field Discovery for the User Created webhook. This activates the field discovery action.
Create a test user in http://User.com to send to the webhook, to provide the webhook it with a user object to extract fields from.
From the http://User.com dashboard navigate to Data > People
Select Create user, enter test data and select Save.
![user dot com interface](./images/userdotcom_20.png)
Check for a notification within the Cyclr workflow builder that the fields have been successfully received.
Map the required User ID within the Get User By ID's step setup.
Select Run in the top-left corner of the workflow builder.
When the cycle is active, each time a user is created, the webhook triggers the cycle to retrieve the new user's details.