How to automate upload APK from Jenkins to TestFairy

pri*_*oki 2 android apk jenkins testfairy

I could not figure out how to command Jenkins to upload an APK to Testfairy. I know that Testfairy has an API for this, see the link below:

http://blog.testfairy.com/how-to-upload-an-app-to-testfairy-via-api/

I'm new to this, how do I use the API?