Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix VimeoVideo.js with updated Vimeo API #411

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JCapul
Copy link

@JCapul JCapul commented Jun 25, 2024

This is a quick and dirty attempt to implement the changes I could figured out from the revamped Vimeo API documentation (ref: https://developer.vimeo.com/api/files/video-links)

I am complete noob in mobile dev so I would need to spare some time to setup and understand the dev environment required to properly test and validate this change. So I just thought, it might be quicker to just push this PR, initiate the discussion, and maybe you will be able to check it much quicker than myself.

Before sending your pull-request 💌 make sure :

  • The tests are up-to-date and your code is tested

Fix Vimeo API call and subsequent processing of the response to get the video link.
@JCapul
Copy link
Author

JCapul commented Jun 25, 2024

attempt to fix #407

@JCapul
Copy link
Author

JCapul commented Jun 25, 2024

Ok, at least I managed to run the tests and they all pass. Now, I just need to check if the fix actually work...sorry that's not really the proper way to do all this !

@JCapul
Copy link
Author

JCapul commented Jun 25, 2024

Ok, I finally managed to make Expo Go work and start digging into the problem.
It looks like Vimeo now requires to have the app registered and to use an access token for the request. With the changes I have made to reflect the new API spec, I get an error 401 Unauthorized.

Edit: confirmed by https://stackoverflow.com/a/74120966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant