Hello Everyone, I have an issue returning the information on the site, I’m not using WordPress just laravel website.
So I’m requesting this
The problem is that I’m not able to know which Tier they have chosen, I would like to add some features based on Tiers so I need to know which one they pledged to.
I get this response from the API
array(3) {
["data"]=>
array(4) {
["attributes"]=>
array(9) {
["email"]=>
string(23) "aryan.shirani@gmail.com"
["first_name"]=>
string(6) "Ashira"
["full_name"]=>
string(6) "Ashira"
["image_url"]=>
string(37) "https://c8.patreon.com/2/200/26699662"
["is_email_verified"]=>
bool(true)
["last_name"]=>
string(0) ""
["thumb_url"]=>
string(37) "https://c8.patreon.com/2/200/26699662"
["url"]=>
string(39) "https://www.patreon.com/user?u=26699662"
["vanity"]=>
NULL
}
["id"]=>
string(8) "26699662"
["relationships"]=>
array(1) {
["memberships"]=>
array(1) {
["data"]=>
array(6) {
[0]=>
array(2) {
["id"]=>
string(36) "acfce325-b5cc-427c-84fd-f29b8b977e8f"
["type"]=>
string(6) "member"
}
[1]=>
array(2) {
["id"]=>
string(36) "497a20b0-c376-40df-964a-5c8610044de4"
["type"]=>
string(6) "member"
}
[2]=>
array(2) {
["id"]=>
string(36) "f30d84a4-fba1-40e0-8d51-89237a137b7b"
["type"]=>
string(6) "member"
}
[3]=>
array(2) {
["id"]=>
string(36) "a6a9cc4c-9cfa-4f72-a043-2e0593eeaadd"
["type"]=>
string(6) "member"
}
[4]=>
array(2) {
["id"]=>
string(36) "b8102c9a-2e47-460a-8783-96c377439ea3"
["type"]=>
string(6) "member"
}
[5]=>
array(2) {
["id"]=>
string(36) "b1f687c5-0978-493d-9067-954cf09072d6"
["type"]=>
string(6) "member"
}
}
}
}
["type"]=>
string(4) "user"
}
["included"]=>
array(6) {
[0]=>
array(3) {
["attributes"]=>
array(6) {
["currently_entitled_amount_cents"]=>
int(0)
["last_charge_date"]=>
string(29) "2020-08-01T09:59:39.000+00:00"
["last_charge_status"]=>
string(4) "Paid"
["lifetime_support_cents"]=>
int(200)
["patron_status"]=>
string(13) "former_patron"
["pledge_relationship_start"]=>
string(29) "2020-07-17T16:03:47.621+00:00"
}
["id"]=>
string(36) "acfce325-b5cc-427c-84fd-f29b8b977e8f"
["type"]=>
string(6) "member"
}
[1]=>
array(3) {
["attributes"]=>
array(6) {
["currently_entitled_amount_cents"]=>
int(0)
["last_charge_date"]=>
string(29) "2020-08-01T09:59:39.000+00:00"
["last_charge_status"]=>
string(4) "Paid"
["lifetime_support_cents"]=>
int(200)
["patron_status"]=>
string(13) "former_patron"
["pledge_relationship_start"]=>
string(29) "2020-07-18T06:43:44.169+00:00"
}
["id"]=>
string(36) "497a20b0-c376-40df-964a-5c8610044de4"
["type"]=>
string(6) "member"
}
[2]=>
array(3) {
["attributes"]=>
array(6) {
["currently_entitled_amount_cents"]=>
int(0)
["last_charge_date"]=>
string(29) "2020-08-01T09:59:39.000+00:00"
["last_charge_status"]=>
string(4) "Paid"
["lifetime_support_cents"]=>
int(200)
["patron_status"]=>
string(13) "former_patron"
["pledge_relationship_start"]=>
string(29) "2020-07-18T06:45:10.074+00:00"
}
["id"]=>
string(36) "f30d84a4-fba1-40e0-8d51-89237a137b7b"
["type"]=>
string(6) "member"
}
[3]=>
array(3) {
["attributes"]=>
array(6) {
["currently_entitled_amount_cents"]=>
int(0)
["last_charge_date"]=>
string(29) "2020-08-01T09:59:39.000+00:00"
["last_charge_status"]=>
string(4) "Paid"
["lifetime_support_cents"]=>
int(200)
["patron_status"]=>
string(13) "former_patron"
["pledge_relationship_start"]=>
string(29) "2020-07-18T06:47:49.145+00:00"
}
["id"]=>
string(36) "a6a9cc4c-9cfa-4f72-a043-2e0593eeaadd"
["type"]=>
string(6) "member"
}
[4]=>
array(3) {
["attributes"]=>
array(6) {
["currently_entitled_amount_cents"]=>
int(0)
["last_charge_date"]=>
string(29) "2021-01-30T07:41:06.000+00:00"
["last_charge_status"]=>
string(4) "Paid"
["lifetime_support_cents"]=>
int(121)
["patron_status"]=>
string(13) "former_patron"
["pledge_relationship_start"]=>
string(29) "2021-01-30T07:41:04.391+00:00"
}
["id"]=>
string(36) "b8102c9a-2e47-460a-8783-96c377439ea3"
["type"]=>
string(6) "member"
}
[5]=>
array(3) {
["attributes"]=>
array(6) {
["currently_entitled_amount_cents"]=>
int(100)
["last_charge_date"]=>
NULL
["last_charge_status"]=>
NULL
["lifetime_support_cents"]=>
int(0)
["patron_status"]=>
string(13) "active_patron"
["pledge_relationship_start"]=>
string(29) "2021-09-02T04:37:50.795+00:00"
}
["id"]=>
string(36) "b1f687c5-0978-493d-9067-954cf09072d6"
["type"]=>
string(6) "member"
}
}
["links"]=>
array(1) {
["self"]=>
string(51) "https://www.patreon.com/api/oauth2/v2/user/26699662"
}
}
=================================================array(2) {
["data"]=>
array(1) {
[0]=>
array(4) {
["attributes"]=>
array(0) {
}
["id"]=>
string(7) "5191475"
["relationships"]=>
array(1) {
["tiers"]=>
array(1) {
["data"]=>
array(0) {
}
}
}
["type"]=>
string(8) "campaign"
}
}
["meta"]=>
array(1) {
["pagination"]=>
array(1) {
["total"]=>
int(1)
}
}
}
Anyone can help?