stripe/stripe-go — pull request #46 by wangjohn (2014-12-16 03:35:25+00:00)
Title: Add file uploads to Go bindings

This PR adds the file upload API to the Go bindings. This PR does changes the underlying backend interface a little bit (it adds a new `AbstractCall` method which gives the caller more general control over a request). This is needed because the uploads API hits `https://uploads.stripe.com` which is a different endpoint than usual, and because we need to send `multipart/form-data` which requires a different request interface.

r? @cosn
cc @amfeng, @jayeb