We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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'))
UnicodeDecodeError: 'utf8' codec can't decode byte 0x89 in position 0: invalid start byte
It appears this might not have been implemented, or am I doing it wrong?
Results in:
And
Results in: