Skip to content

Instantly share code, notes, and snippets.

@paulsingh
Created March 4, 2010 16:59
Show Gist options
  • Save paulsingh/321902 to your computer and use it in GitHub Desktop.
Save paulsingh/321902 to your computer and use it in GitHub Desktop.
<data>
<mailing-month>01</mailing-month>
<mailing-day>01</mailing-day>
<letter>
<pdf-remote-url>http://www.irs.gov/pub/irs-pdf/fw4.pdf</pdf-remote-url>
<sender-attributes>
<zip>20148</zip>
<city>Ashburn</city>
<street1>123 Any Street</street1>
<name>Some Dude</name>
<state>VA</state>
</sender-attributes>
<recipient-attributes>
<zip>99999</zip>
<city>San Antonio</city>
<street1>789 Some Dr</street1>
<name>That Guy</name>
<state>TX</state>
</recipient-attributes>
</letter>
<mailing-year>2011</mailing-year>
<api-key>1b9884c66a</api-key>
</data>
#curl -X POST -d "<data><mailing-month>01</mailing-month><mailing-day>01</mailing-day><letter><pdf-remote-url>http://www.irs.gov/pub/irs-pdf/fw4.pdf</pdf-remote-url><sender-attributes><zip>20148</zip><city>Ashburn</city><street1>123 Any Street</street1><name>Some Dude</name><state>VA</state></sender-attributes><recipient-attributes><zip>99999</zip><city>San Antonio</city><street1>789 Some Dr</street1><name>That Guy</name><state>TX</state></recipient-attributes></letter><mailing-year>2011</mailing-year><api-key>1b9884c66a</api-key></data>" -H "Content-Type: text/xml" http://www.mailfinch.com/letters.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment