Hello,
in XF 1.5x I was able to use ...
... to access the data of the user who is currently logged into the XF. Using this data, I then created an automatic login in an external wiki (Dokuwiki).
How do I get this data with XF 2.1? I assume with the REST API -> GET me/. Is there a simple example that shows the name of the registered user?
Thank you.
in XF 1.5x I was able to use ...
PHP:
$xf_user = XenForo_Visitor::getInstance();
How do I get this data with XF 2.1? I assume with the REST API -> GET me/. Is there a simple example that shows the name of the registered user?
Thank you.