It appears this might not have been implemented, or am I doing it wrong?
token.post('documents/%s' % id, documentType = 'other', file = ('rollbar.png', open('rollbar.png', 'rb'), 'image/png'))
Results in:
TypeError: <open file 'rollbar.png', mode 'rb' at 0x10c6ea4b0> is not JSON serializable
And
token.post('documents/%s' % id, documentType = 'other', file = ('rollbar.png', open('rollbar.png', 'rb').read(), 'image/png'))
Results in:
UnicodeDecodeError: 'utf8' codec can't decode byte 0x89 in position 0: invalid start byte