You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Naman,
Can we get support for adding receipt to an expense. It can work as follows:
receipt = "receipt.jpeg"
files = {"receipt": open(receipt, 'rb')}
requestObj = Request(method=method, url=url, data=data, auth=auth, files=files)
Unfortunately, Splitwise has no APIs to upload a receipt. What you can do now is add it receipt url in description using expense.setDescription method. I am also adding a setDetail method which can also be used.
Someone is also working on adding support for adding comments. So you will be able to add receipt url as comment as well.
You will have all this by Sunday.
Hi Naman,
Based on splitwise/api-docs#21 "receipt" is a parameter available for create expense.
I was able to use that successfully using Request as mentioned in issue description.
Naman,
Can we get support for adding receipt to an expense. It can work as follows:
receipt = "receipt.jpeg"
files = {"receipt": open(receipt, 'rb')}
requestObj = Request(method=method, url=url, data=data, auth=auth, files=files)