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

Adding video support for the API #6

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

Voltaic314
Copy link

Doesn't support popular videos yet or the "get video by id" function, but at least it's a start. I also didn't include the video preview JPGs either, but at least it would support videos.

I tried to make this PR as easy as possible for you to review but honestly I'm a junior coder at best so if you have any suggestions let me know and we can make it work better.

created an addon to the API to include video info (just what I need though -- feel free to add what you need to this!)
adding video functionality (in a very messy way, will update later -- just testing)
updating video stuffs
Cleaned up the description attribute since the alt text is now a thing in pexels api. 
Also added support for the avg_color attribute as well which was also in the search photos json but not in here.
Will add popular video and get video support later!
Trying to add video API support though frankly I'm not the best coder, but doing my best here.
…dule and class

Actually fixing my dumb code this time.
This way we have 2 methods in case one works and the other doesn't. In this case I'm enforcing it to be all lowercase that way it remains consistent for the end user. But I think technically speaking, the alt text from Pexels is not necessarily in lower beforehand.
@felipelalli felipelalli mentioned this pull request Aug 6, 2023
@darkcurrent
Copy link

It is async and has video support:

https://github.com/darkcurrent/pexels-async-api

@Voltaic314
Copy link
Author

It is async and has video support:

https://github.com/darkcurrent/pexels-async-api

Thank you for your contribution @darkcurrent ! Great work.

I'm not sure if this PR will ever get approved / merged. Creator hasn't been active on this project in years. But I appreciate the help at least.

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.

2 participants