You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Note that is some of marketos documentation they reference the filterType as cookie and others cookies, I've tried both in this example and get the same empty results - response = client.get_leads(:cookie, [cookie])
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.The text was updated successfully, but these errors were encountered: