Home > front end >  Comment on vimeo video using API (python)
Comment on vimeo video using API (python)

Time:04-28

I'm trying to comment on some video that is on Vimeo using their API, this is my code :

client = vimeo.VimeoClient(
token='tok',
key='key',
secret='secret')
client.post('https://api.vimeo.com/videos/{ID}/comments')

I recived an http message 400 the comment is missing, but where i need to put my comment ?

Thanks.

CodePudding user response:

try

client.post(
    'https://api.vimeo.com/videos/{ID}/comments',
    data={
        "text": "this is the comment"
    }
)

https://developer.vimeo.com/api/reference/videos#create_comment_reply

  • Related