curl を介してサービスを呼び出そうとしていますが、ここに私のコードがあり、添付のエラーが発生するたびに
error_reporting(-1);
$qbsite = "https://qbo.sbfinance.intuit.com/resource/account/v2/960432556";
$headers = array(
'Content-Type'=>'application/xml',
'oauth_version' => "1.0",
'oauth_signature_method'=>"HMAC-SHA1",
'oauth_nonce'=>"xxx",
'oauth_timestamp'=>"xxx",
'oauth_consumer_key'=>"qyprdvZraQrBVbrPIptwd6gl6C6knP",
'oauth_token'=>"qyprdyLcCq9KMGVzqxtObeOkTvSWhhi7sNSW62u9gwqDXsc7",
'oauth_signature'=>"LnVYSgE9YZ77KgKZ1kLT3ouIu1M=",
);
$xmlData = '<?xml version="1.0" encoding="utf-16"?>
<Account xmlns:ns2="http://www.intuit.com/sb/cdm/qbo" xmlns="http://www.intuit.com/sb/cdm/v2">
<Name>Loan Account </Name>
<Desc>Loan Account</Desc>
<Subtype>Savings</Subtype>
<AcctNum>5001</AcctNum>
<OpeningBalanceDate>2010-05-14</OpeningBalanceDate>
</Account>';
$ch = curl_init($qbsite);
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_POSTFIELDS, "\n{$xmlData}");
$response = curl_exec($ch);
print($response);die; !