Skip to content

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Drift SDK Initial commit #104

wants to merge 1 commit into from

Conversation

Aaron022
Copy link
Contributor

Authentication type

  • oauth2

Actions

  • Create record
  • Update record
  • Delete record
  • Search record
  • Get record

Triggers

  • New object
  • Updated/Deleted object

More Details

Issue: https://github.com/workato/issues/issues/10341

@Aaron022 Aaron022 requested a review from svchandra April 20, 2020 11:53
},
sample_output: lambda do |_connection, input|
sample_output = [{ orgId: '1351205',
type: 'Event' }].
Copy link

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]
Copy link

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
Copy link

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'] }.
Copy link

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 &rarr; ' \
'Connector SDK &rarr; Drift &rarr; Settings then click on <b>Copy static webhook URI</b>.',
Copy link

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.',
Copy link

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.',
Copy link

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.',
Copy link

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.',
Copy link

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',
Copy link

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]

@Aaron022 Aaron022 self-assigned this Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant