質問: { 'content-type': 'multipart/form-data; boundary="$boundary"; charset=
回答: postman で作成した sample code で良ければ参考にしてくださいな。 import http.client conn = http.client.httpsconnection("apis.worksmobile.com") payload = 'to=xxxxx%40xxx.com&subject=postman%e3%81%8b%e3%82%89%e3%81%ae%e9%80%81%e4%bf%a1%e3%83%a1%e3%83%bc%e3%83%ab' headers = { 'consumerkey': 'consumerkey', 'content-type': 'application/x-www-form-urlencoded', 'authorization': 'bearer xxxxxxxxxxxxxxxxxxxxx', 'cookie': 'lc=en_us; language=en_us' } conn.request("post", "/r/api_id/mail/v2/sendmail", payload, headers