$info = array(
\'values\' => array(
\'email\' => \'[email protected]\',
\'firstname\' => "firstname",
\'lastname\' => "lastname",
\'source\' => "WEB",
),
);
$infoo=json_encode($info);
$sf_auth = \'Bearer \' . $data[\'accessToken\'];
$finalUrl="https://www.exacttargetapis.com/hub/v1/dataevents/key:Web_Registrations/rows/GUID:7777";
$result= wp_remote_post( $finalUrl, array(
\'method\' => \'POST\',
\'timeout\' => 45,
\'redirection\' => 5,
\'httpversion\' => \'1.0\',
\'blocking\' => true,
\'headers\' => array(
\'Content-Type\' => \'application/json\',
\'Authorization\' => $sf_auth,
),
\'body\' => $infoo,
\'cookies\' => array()
)
);
试图在wp内发布,但我收到消息:未找到,错误代码:404
谁知道我做错了什么??