Class: RDStationClient::Event::Create

Inherits:
Authenticated show all
Defined in:
lib/rd_station_client/event/create.rb

Overview

Create an event at RDStation based on this documentation: developers.rdstation.com/reference/eventos-padr%C3%A3o Ex:

RDStationClient::Event::Create.(
  body: {
    event_type: 'CONVERSION',
    event_family: 'CDP',
    payload: {
      conversion_identifier: 'Name of the conversion event',
      name: 'Nome',
      email: '[email protected]',
      job_title: 'job title value',
      state: 'state of the contact',
      city: 'city of the contact',
      country: 'country of the contact',
      personal_phone: 'phone of the contact',
      mobile_phone: 'mobile_phone of the contact',
      twitter: 'twitter handler of the contact',
      facebook: 'facebook name of the contact',
      linkedin: 'linkedin user name of the contact',
      website: 'website of the contact',
      cf_custom_field_api_identifier: 'custom field value',
      company_name: 'company name',
      company_site: 'company website',
      company_address: 'company address',
      client_tracking_id: 'lead tracking client_id',
      traffic_source: 'Google',
      traffic_medium: 'cpc',
      traffic_campaign: 'easter-50-off',
      traffic_value: 'easter eggs',
      tags: [
        mql',
        2019'
      ],
      available_for_mailing: true,
      legal_bases: [
        {
          category: 'communications',
          type: 'consent',
          status: 'granted'
        }
      ]
    }
  }

Constant Summary

Constants inherited from Authenticated

Authenticated::AUTH_DATA_KEY

Method Summary

Methods inherited from Authenticated

#run

Methods inherited from Base

config