I need to find out in php if 'the current user' has recently renewed membership (or just signed up as a new member).
I don't think I can get data about renewal from the Membership entity. The 'Join date' seems to be the same as the 'Start date'. So for renewal, I'd have to look at Activities of the type renewal.
- I hoped I could do this with the ActivityContact entity, but it doesn't allow me to filter on activity type.
- I hoped I could do this with the Activity entity, but it doesn't allow me to filter on the 'target_contact', or 'assignee', or whatever it's called.
So .. do I need to join api calls - how would I do that ? - or is there another way ?