[RSS Feed/News] Updating a new user entity field via REST API

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I extended the "XF\Entity\User" class to add a new field to get it when authorizing with ('api/auth/from-session').
The code looks like this:
PHP:

Code:
class User extends XFCP_User
{
    protected function setupApiResultData(\XF\Api\Result\EntityResult $result, $verbosity = self::VERBOSITY_NORMAL, array $options = [])
    {
        parent::setupApiResultData($result, $verbosity, $options);

        $result->includeColumn(['system_information']);
    }

    public static function...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom