コード例 #1
0
 /**
  * Service Call: CreateAccount
  * @param CreateAccountRequest $createAccountRequest
  * @return CreateAccountResponse
  * @throws APIException
  */
 public function CreateAccount($createAccountRequest, $apiUsername = null)
 {
     $ret = new CreateAccountResponse();
     $resp = $this->call("CreateAccount", $createAccountRequest, $apiUsername);
     $ret->init(PPUtils::nvpToMap($resp));
     return $ret;
 }
 /**
  * Service Call: CreateAccount
  * @param CreateAccountRequest $createAccountRequest
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return CreateAccountResponse
  * @throws APIException
  */
 public function CreateAccount($createAccountRequest, $apiCredential = NULL)
 {
     $ret = new CreateAccountResponse();
     $apiContext = new PPApiContext($this->config);
     $handlers = array(new PPPlatformServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
     $apiContext = new PPApiContext($this->config);
     $handlers = array(new PPPlatformServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
     $resp = $this->call('AdaptiveAccounts', 'CreateAccount', $createAccountRequest, $apiContext, $handlers);
     $ret->init(PPUtils::nvpToMap($resp));
     return $ret;
 }