mercadolibre / python-sdk

MercadoLibre's Python SDK
131 stars 111 forks source link

Uploading images using python-sdk's resource_post #57

Open pabcordeiro opened 3 years ago

pabcordeiro commented 3 years ago

How do I pass the "content-type" and "file" parameters using the .resource_post method? As in :

curl -X POST  -H 'Authorization: Bearer $ACCESS_TOKEN'  \
-H 'content-type: multipart/form-data' \
-F 'file=@FILE' \
https://api.mercadolibre.com/pictures/items/upload
gusarg81 commented 3 years ago

In my case I had to create my own function for this, since from the maintainer zero response.

Anyways, this repo is not maintained anymore...