Hello,
I’m using django-allauth to authenticate users (uses API v1), which adds a json to the database with the following info:
{"attributes": {"about": null, "can_see_nsfw": true, "created": "2019-05-20T20:29:02.000+00:00", "default_country_code": null, "discord_id": null, "email": "admin@email.com", "facebook": null, "facebook_id": null, "first_name": "Adm", "full_name": "Adm Nsm", "gender": 0, "has_password": true, "image_url": "https://c8.patreon.com/2/200/21383296", "is_deleted": false, "is_email_verified": false, "is_nuked": false, "is_suspended": false, "last_name": "Nsm", "social_connections": {"deviantart": null, "discord": null, "facebook": null, "instagram": null, "reddit": null, "spotify": null, "twitch": null, "twitter": null, "youtube": null}, "thumb_url": "https://c8.patreon.com/2/200/21383296", "twitch": null, "twitter": null, "url": "https://www.patreon.com/user?u=21383296", "vanity": null, "youtube": null}, "id": "21383296", "relationships": {"pledges": {"data": [{"id": "24461189", "type": "pledge"}]}}, "type": "user"}
At first I though “relationships”: {“pledges”: {“data”: [{“id”: “24461189”, “type”: “pledge”}]}} would have the ID of the current tier, but after testing with a second account it seems to differ each time.
How could I check if a user has a specific pledge/tier level on my campaign to display additional content?
Thank you!