Konvertieren curl Beispiel, um pycurl

Könnte jemand konvertieren Sie die folgenden Poststempel curl Beispiel, um pycurl?

curl -X POST "http://api.postmarkapp.com/email" \

-H "Accept: application/json" \

-H "Content-Type: application/json" \

-H "X-Postmark-Server-Token: ed742D75-5a45-49b6-a0a1-5b9ec3dc9e5d" \

-v \

-d "{From: '[email protected]', To: '[email protected]', Subject: 'Postmark test', HtmlBody: '<html><body><strong>Hello</strong> dear Postmark user.</body></html>'}"
Ich kann, aber ich nicht. Zeigen Sie Ihre code-werde ich ändern. Es ist einfacher für mich.

InformationsquelleAutor Darth | 2014-04-02

Schreibe einen Kommentar