I’m using the patreon api with the php library and finding it really difficult just to get how much a user is pledging just to me. When I get the users identity it returns all pledges to my campaig and other campaigns how do I know which is mine? This seems it should be a really easy thing to achieve.
I’ve followed all the code examples in the library GIT and trawled through many topics here with no avail.
This is the array I see (with values removed) though I can’t tell which ID refers to my campaing tier:
[included] => Array
(
[0] => Array
(
[attributes] => Array
(
[currently_entitled_amount_cents] =>
[last_charge_date] =>
[last_charge_status] =>
[lifetime_support_cents] =>
[patron_status] =>
[pledge_relationship_start] =>
)
[id] =>
[type] =>
)
[1] => Array
(
[attributes] => Array
(
[currently_entitled_amount_cents] =>
[last_charge_date] =>
[last_charge_status] =>
[lifetime_support_cents] =>
[patron_status] =>
[pledge_relationship_start] =>
)
[id] =>
[type] =>
)
[2] => Array
(
[attributes] => Array
(
[currently_entitled_amount_cents] =>
[last_charge_date] =>
[last_charge_status] =>
[lifetime_support_cents] =>
[patron_status] =>
[pledge_relationship_start] =>
)
[id] =>
[type] =>
)
)
[links] => Array
(
[self] =>
)
Please help I’m loosing my mind over this!!