Method: Infusionsoft::Client::Data#data_load

Defined in:
lib/infusion-api/client/data.rb

#data_load(table, id, selected_fields) ⇒ Hash

This method will load a record from the database given the primary key.

Examples:

{ "FirstName" => "John", "LastName" => "Doe" }

Parameters:

  • table (String)
  • id (Integer)
  • selected_fields (Array)

Returns:

  • (Hash)

    the field names and their data



23
24
25
# File 'lib/infusion-api/client/data.rb', line 23

def data_load(table, id, selected_fields)
  response = get('DataService.load', table, id, selected_fields)
end