I'm attempting to find a lead id via the munchkin cookie.
When I use the client in this manner:
response = client.get_leads(:cookie, [cookie])
I get {:requestId=>"xx", :result=>[], :success=>true}
If i make a direct request with the same cookie via HTTParty
HTTParty.get('https://#{id}.mktorest.com/rest/v1/leads.json?filterType=cookie&filterValues=#{cookie}&fields=cookies,email&access_token=#{access_token}')
I also get a successful response but this time including results.
I've used the same initialized client to call get leads by email (client.get_leads(:email, [current_user.profile.email])) and that returns the correct results. Perplexed as to why this would be different or what the issue could be.
I'm attempting to find a lead id via the munchkin cookie.
When I use the client in this manner:
response = client.get_leads(:cookie, [cookie])I get
{:requestId=>"xx", :result=>[], :success=>true}If i make a direct request with the same cookie via HTTParty
HTTParty.get('https://#{id}.mktorest.com/rest/v1/leads.json?filterType=cookie&filterValues=#{cookie}&fields=cookies,email&access_token=#{access_token}')I also get a successful response but this time including results.
I've used the same initialized client to call get leads by email (
client.get_leads(:email, [current_user.profile.email])) and that returns the correct results. Perplexed as to why this would be different or what the issue could be.