こんにちは私はLinkedInAPIを使用して招待状を送信しています。メッセージで
<?xml version='1.0' encoding='UTF-8'?>
<mailbox-item>
<recipients>
<recipient>
<person path='/people/~'/>
</recipient>
<recipient>
<person path="/people/abcdefg" />
</recipient>
</recipients>
<subject>Congratulations on your new position.</subject>
<body>You're certainly the best person for the job!</body>
</mailbox-item>
この<body>
セクションでは、HTMLを追加しようとしています。
お気に入り
<b>
あなたは確かにその仕事に最適な人です!</b>
しかし、問題は、それが友人によって受信されたメッセージにあるのと同じようにテキストとして表示されることです。その代わりに、私bold
はメッセージの内容にしたいと思います。これどうやってするの 。設定を行う必要がありますか。
私はcodeigniterを使用しています
function send_messeges($access_token, $xml_atring) {
$profile_url = "http://api.linkedin.com/v1/people/~/mailbox";
$xml = '<?xml version="1.0" encoding="UTF-8" ?>
<mailbox-item>
<recipients>
' . $xml_atring . '
</recipients>
<subject>'.$this->send_subject.'</subject>
<body>'.$this->send_message.'</body>
</mailbox-item>';
$request = OAuthRequest::from_consumer_and_token($this->consumer, $access_token, "POST", $profile_url);
$request->sign_request($this->method, $this->consumer, $access_token);
$auth_header = $request->to_header("https://api.linkedin.com");
$response = $this->httpRequest($profile_url, $auth_header, "POST", $xml);
return $response;
}
助けてください 。前もって感謝します