Quantcast
Channel: Topliners: Message List
Viewing all articles
Browse latest Browse all 3431

Re: Get all the contacts using custom search string - REST API

$
0
0

Hi Aman,

 

You create your export like this:

 

export = {

  :filter => { :filterRule => "member", :membershipUri => '/contact/list/'+list_id },

  :name => "Contact List Export - " + Time.now.to_s,

  :secondsToRetainData => "3600",

  :secondsToAutoDelete => "3600",

  :fields => { :C_EmailAddress => "{{Contact.Field(C_EmailAddress)}}"}

  }

  response = HTTParty.post('https://secure.eloqua.com/API/Bulk/1.0/contact/export', :body => export.to_json, :basic_auth => auth, :headers => { 'Content-Type' => 'application/json' })

 

That's in Ruby - but you can see the syntax.  Hope that helps.

 

Cheers,

Ryan


Viewing all articles
Browse latest Browse all 3431

Trending Articles