Skip to content

Add filter by site_ids, and wrapper method for user sites #1

@WolfwithSword

Description

@WolfwithSword

I'm still working on getting some real data with a contact of mine, but I am thinking it would be very helpful to add in a list of site_id's as a filter, similar to the limit filter in the GetOrdersAsync or GoAffProEventDetector, in case a user is using their GoAffPro account for multiple affiliate programs and wants to separate them. I know the order object may include it per order object if requested in the fields, but it can be nice to setup the filtering in the request itself.

As a sidenote, I am currently getting raw data from the following endpoints using just GET requests at the moment, not with the library, as a first step.

/user/sites?status=approved&fields=id,name,logo,website,status,currency,affiliate_portal,ref_code,referral_link,coupon

  • For this one, I'll share the response here since it's site id related. A wrapper function for this returning with a collection of Site object would be very useful down the line to see which sites a user has access to. I am extremely interested in if this returns duplicates and such since the person I have helping me has two referral codes/links in their partnership with gamersupps, and I know a few others with 2+ codes as well. Curious how it'll return.

  • For the endpoints after this, when I receive data I'll likely make another issue pasting them in (with redacted/generalized info in case some is sensitive), which could help make more objects/wrapper methods, tests, etc.

/user/states/aggregate?site_ids={a_site_id}&fields=total_sales,other_commission_earned,revenue_generated,sale_commission_earned,commission_paid

/user/feed/orders?site_ids={a_site_id}&fields=id,number,total,subtotal,line_items,commission,created_at,currency,site_id,sub_id,conversion_details

/user/feed/traffic?site_ids={a_site_id}

/user/commissions?site_ids={a_site_id}

And also worth noting - not all site_ids are in the public sites endpoint. Only ones in the marketplace are - for example, GamerSupps site id is 165328 but this I found out by checking the network calls from here https://gamersupps.goaffpro.com/login since it's not in the public marketplace.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions