-
Notifications
You must be signed in to change notification settings - Fork 53
Drift SDK Initial commit #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
}, | ||
sample_output: lambda do |_connection, input| | ||
sample_output = [{ orgId: '1351205', | ||
type: 'Event' }]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/DotPosition: Place the . on the next line, together with the method name.
object = { 'type' => payload['type'], 'orgId' => payload['orgId'] }. | ||
merge(payload['data']) | ||
date_fields = %w[start_date last_active last_contacted scheduledAt slotStart lastUpdated | ||
timestamp slotEnd updatedAt indexedAt createdAt createDateTime updateDateTime] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics/LineLength: Line is too long. [103/80]
webhook_notification: lambda { |_connection, payload| | ||
object = { 'type' => payload['type'], 'orgId' => payload['orgId'] }. | ||
merge(payload['data']) | ||
date_fields = %w[start_date last_active last_contacted scheduledAt slotStart lastUpdated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics/LineLength: Line is too long. [96/80]
"#{input['object_name']}&#{connection['verification_token']}" | ||
}, | ||
webhook_notification: lambda { |_connection, payload| | ||
object = { 'type' => payload['type'], 'orgId' => payload['orgId'] }. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout/DotPosition: Place the . on the next line, together with the method name.
|
||
{ body: help.present? ? help : "<b>Configure Drift to send events to Workato.</b>" \ | ||
'<br>To find your static webhook URI, click on Tools → ' \ | ||
'Connector SDK → Drift → Settings then click on <b>Copy static webhook URI</b>.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics/LineLength: Line is too long. [103/80]
'Conversation status' => 'Triggers when a conversation has not seen activity in the previous 10 minutes.', | ||
'Meeting' => 'Triggers when a previously booked meeting was either rescheduled or canceled.', | ||
'Contact' => 'Triggers when a contact record has been updated in Drift.', | ||
'User availability' => 'Triggers when a drift user\'s availability has been changed.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics/LineLength: Line is too long. [96/80]
help = { | ||
'Conversation status' => 'Triggers when a conversation has not seen activity in the previous 10 minutes.', | ||
'Meeting' => 'Triggers when a previously booked meeting was either rescheduled or canceled.', | ||
'Contact' => 'Triggers when a contact record has been updated in Drift.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics/LineLength: Line is too long. [83/80]
help: lambda do |_connection, new_updated_object_list| | ||
help = { | ||
'Conversation status' => 'Triggers when a conversation has not seen activity in the previous 10 minutes.', | ||
'Meeting' => 'Triggers when a previously booked meeting was either rescheduled or canceled.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics/LineLength: Line is too long. [103/80]
end, | ||
help: lambda do |_connection, new_updated_object_list| | ||
help = { | ||
'Conversation status' => 'Triggers when a conversation has not seen activity in the previous 10 minutes.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics/LineLength: Line is too long. [116/80]
}, | ||
update_object: { | ||
title: 'Updated/deleted object ', | ||
subtitle: 'Triggers when an object is updated, removed, unsubscribed in Drift', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Metrics/LineLength: Line is too long. [85/80]
Authentication type
Actions
Triggers
More Details
Issue: https://github.com/workato/issues/issues/10341