public function getOpenId(AccessToken $token)
    {
        $request = $this->getAuthenticatedRequest(self::METHOD_GET, $this->domain.'/oauth2.0/me?access_token='.(string)$token);

        $response = $this->getResponse($request);

        return isset($response['openid']) ? $response['openid'] : null;
    }
public function getOpenId(AccessToken $token)
    {
        $request = $this->getAuthenticatedRequest(self::METHOD_GET, $this->domain.'/oauth2.0/me?access_token='.(string)$token);

        $response = $this->getResponse($request);

        return isset($response['openid']) ? $response['openid'] : null;
    }
public function getOpenId ( AccessToken $ token ) { $ request = $ this -> getAuthenticatedRequest ( self :: METHOD_GET , $ this -> domain . '/oauth2.0/me?access_token=' . ( string ) $ token ) ; $ response = $ this -> getResponse ( $ request ) ; return isset ( $ response [ 'openid' ] ) ? $ response [ 'openid' ] : null ; }
Get open id from access token

@param  array $params

@return string
Get open id from access token