PHP에서 내 코드드릴은 포기 유효하지 않은 응용 프로그램은 키 오류
$args = array(
'key' => '73357ad2-e59e-4669---------',
'message' => array(
"html" => "<p>\r\n\tHi Adam,</p>\r\n<p>\r\n\tThanks for <a href=\"http://mandrill.com\">registering</a>.</p>\r\n<p>etc etc</p>",
"text" => null,
"from_email" => "[email protected]",
"from_name" => "SIVOnline",
"subject" => "Your recent registration",
"to" => array(array("email" => "[email protected]")),
"track_opens" => true,
"track_clicks" => true,
"auto_text" => true
)
);
// Open a curl session for making the call
$curl = curl_init('https://mandrillapp.com/api/1.0/messages/send.json');
// Tell curl to use HTTP POST
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
// Tell curl not to return headers, but do return the response
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
// Set the POST arguments to pass on
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($args));
// Make the REST call, returning the result
$response = curl_exec($curl);
// Close the connection
curl_close($curl);
이며 여전히 키를 regenarating 내가 무엇입니까 후 나에게 잘못된 API 키를주고있다 같은 오류.
처럼 그것을 할 것인가? –
@Williams Castillo - 916 Networks와 마찬가지로 사용자/Ping 호출을 먼저 확인하는 목적은 무엇입니까? – JM4