vimeo / vimeo.py

Official Python library for the Vimeo API.
https://developer.vimeo.com
Apache License 2.0
210 stars 84 forks source link

v.get('https://api.vimeo.com/me/videos').content is a str , should be a dict #110

Closed Loewkie closed 6 years ago

Loewkie commented 6 years ago

v.get('https://api.vimeo.com/me/videos').content has the structure of a dictionary (which I want, so that I can select the data I need), but it has the data type str. Can you fix this?

huine commented 6 years ago

There's no problem at all. To get it as dict you can use json in place of content likes this: v.get('https://api.vimeo.com/me/videos').json()

Loewkie commented 6 years ago

If I do that all I get is:

<bound method Response.json of <Response [200]>> Data type 'instancemethod'

Oh no now I finally see what I missed. The parentheses... Thanks. Case closed.

huine commented 6 years ago

You're welcome! Just close the issue later :)