コード例 #1
0
 /**
  * Returns user information such as first name, last name, and email address.
  *
  * @return SimpleXMLElement Xml of Disconnect response
  */
 public function CurrentUser()
 {
     $this->requestXmlDocument = '';
     $uriFragment = implode(CoreConstants::SLASH_CHAR, array('v1', 'user', 'current'));
     $requestParameters = new RequestParameters(NULL, 'GET', NULL, $uriFragment);
     list($respCode, $respXml, $respError) = $this->restRequestHandler->GetResponse($requestParameters, $this->requestXmlDocument, NULL);
     return simplexml_load_string($respXml);
 }