public function authenticateNewUser(string $invite)
    {
        $result = $this->authenticateNewUserInternal([
            'invite' => $invite,
        ]);
        $statusCode = (int)$result[ 'statusCode' ];

        if ($statusCode === 200) {
            return $this->getResultAsArrayWithoutStatusCode($result);
        } elseif ($statusCode === 400) {
            return null;
        }

        $this->reportUnexpectedResponse($result, 1544549972);
    }
public function authenticateNewUser(string $invite)
    {
        $result = $this->authenticateNewUserInternal([
            'invite' => $invite,
        ]);
        $statusCode = (int)$result[ 'statusCode' ];

        if ($statusCode === 200) {
            return $this->getResultAsArrayWithoutStatusCode($result);
        } elseif ($statusCode === 400) {
            return null;
        }

        $this->reportUnexpectedResponse($result, 1544549972);
    }
public function authenticateNewUser ( string $ invite ) { $ result = $ this -> authenticateNewUserInternal ( [ 'invite' => $ invite , ] ) ; $ statusCode = ( int ) $ result [ 'statusCode' ] ; if ( $ statusCode === 200 ) { return $ this -> getResultAsArrayWithoutStatusCode ( $ result ) ; } elseif ( $ statusCode === 400 ) { return null ; } $ this -> reportUnexpectedResponse ( $ result , 1544549972 ) ; }
Attempt to authenticate using a new user invite code

@param string $invite The new user invite code.
@return array|null An array of user information (if valid), or null.
@throws ServiceException
Attempt to authenticate using a new user invite code