It is possible to obtain the user role in Wordpress from an external PHP application?
I explain myself better: I am using the OAuth server plugin in my Wordpress site and I have created a script in another PHP site so that it is only possible to access this site if the user is registered in the Wordpress site. Now what I need is to obtain the role of the user that is entering my PHP site, using Curl I have been able to obtain the Id assigned to the user in Wordpress but I need the role to assign privileges in my PHP site. Any way to do this? How do I get the user's credentials from an external PHP site?