Skip to content

Empty results in client.get_leads by cookie #28

@racheldonovan

Description

@racheldonovan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions