Hello,
I am using the patreon/patreon package for PHP.
I am able to execute the login example and retrieve the user with his pledge relations.
Using it on myself, I get this:
included": array:2 [▼
0 => {#280 ▼
+“attributes”: {#279 ▼
+“currently_entitled_amount_cents”: 0
+“last_charge_date”: “2018-12-03T02:17:31.000+00:00”
+“last_charge_status”: “Paid”
+“lifetime_support_cents”: 4000
+“patron_status”: “former_patron”
+“pledge_relationship_start”: “2018-09-22T13:05:59.093+00:00”
}
+“id”: “ba312e07-16bd-4a5c-9348-1b71a5618682”
+“type”: “member”
}
1 => {#282 ▼
+“attributes”: {#281 ▼
+“currently_entitled_amount_cents”: 1000
+“last_charge_date”: “2020-01-01T22:05:43.000+00:00”
+“last_charge_status”: “Paid”
+“lifetime_support_cents”: 6000
+“patron_status”: “active_patron”
+“pledge_relationship_start”: “2019-07-22T00:06:24.381+00:00”
}
+“id”: “53d9e81e-debe-43c9-bee6-49a31fa39146”
+“type”: “member”
}
Now this apparently gives me all the pledges of a user, but how do I find out which one is the pledge to my campaign?