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
@app.route('/vimeo/api')
def vimeo():
try:
# `scope` is an array of permissions your token needs to access.
# You can read more at https://developer.vimeo.com/api/authentication#supported-scopes
token = v.load_client_credentials('public')
# usable access token
print('token=%s' % token)
except vimeo.auth.GrantFailed:
# Handle the failure to get a token from the provided code and redirect.
print('token failed')
me = v.get(path, data={'Accept':'application/vnd.vimeo.*+json;version=3.4'})
me = me.json()
mejson = jsonify(uri=me['uri'], description=me['description'], width=me['width'], height=me['height'])
return mejson
I have followed the documentation as closely as possible but always end up with these errors.
Thank you.
The text was updated successfully, but these errors were encountered:
This seems to be the code in Chrome it is referencing
{
if (this.data) return this.data.play.dash.link;
console.warn("[Vimeo] There was a problem loading your video, did you provide a valid Vimeo video ID?")
Errors on Firefox
SyntaxError: invalid regular expression flag s
Errors on Chrome
Uncaught (in promise) Error: TypeError: Cannot read property 'dash' of undefined
at aframe-vimeo-component.min.js:10
I am using Python Flask
Front-End
Back-End
I have followed the documentation as closely as possible but always end up with these errors.
Thank you.
The text was updated successfully, but these errors were encountered: