vimeo / vimeo.py

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

Retrieving channel's metadatas #164

Closed 8oris closed 4 years ago

8oris commented 4 years ago

Hey there,

How retrieving channel's metadatas with this package? I tryed:

vimeo_api = vimeo.VimeoClient(
    token="...",
    key="....",
    secret="...")
    vimeo_api.get('/channel/' + vimeo_id, params={"fields": "uri,name,bio,created_time,websites,metadata.connections.followers.total,metadata.connections.videos.total"})

But I got a 404. :'(

Thanks.

Regards.

8oris commented 4 years ago

Ok, my bad. I should user '/users/' instead of channel. So: vimeo_api = vimeo.VimeoClient( token="...", key="....", secret="...") vimeo_api.get('/users/' + vimeo_id, params={"fields": "uri,name,bio,created_time,websites,metadata.connections.followers.total,metadata.connections.videos.total"})

It works like a charm. Sorry for my n00b's question.