Grabbing user JSON data without being logged in
I'm currently in the process of highly integrating WordPress and Vanilla, and I would like to display some information from Vanilla on my WordPress site. Mainly, profile info, notifications, messages, and badges. I planned on using JSON to grab this data, but quickly ran into some issues.
https://mysite.com/community/profile.json/username <-- Publicly accessible
https://mysite.com/community/messages.json/inbox <-- Only accessible through that user's login session
I'm wondering if there is a way to securely grab the data that is typically only accessible by the current logged in user. Something like: