Find Discord UserID from Patreon?

I ended up building my own ‘integration’ from scratch, because the JSON parser built into the Patreon module as well as the standard JSON parser ignore parts of the output when the JSON repeats the same data (the callback from Patreon on a change can contain up to 4 sections with identical structures ([included]>[attributes]) in them, and Make’s JSON only sees the first time they occur, without giving me access to the fields in the 2nd~4th iterations of the same…

It’s very likely Patreon is to blame here, but that doesn’t help me.
I opened a ticket to get it fixed, but my custom ‘integration’ using the standard webhook will do exactly what I want…

In the end it it still a fairly compact scenario, despite having to kludge around with text parser and array aggregation…

  1. Webhook, pass JSON as string
  2. TP (1), grab Discord UserID
  3. TP (1), grab all entitled tiers
  4. Put tiers (3) in Array
  5. Build an array with all Tiers and their matching DIscord role IDs
  6. Iterate through the Tiers array (5)
  7. router
    filter: If Tier name (5/6) is in Entitled Tiers Array (4):
  8. Add role ID (5/6) to User ID (2)
    filter: If Tier name (5/6) is NOT in Entitled Tiers Array (4):
  9. Remove role ID (5/6) from User ID (2)
1 Like