Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello
This was working for me a few days ago but now the first video that you get is always a Youtube error video:
https://www.youtube.com/watch?v=UKY3scPIMd8
It tells you to go to:
http://youtube.com/devicesupport where they explain that API 2 will no longer be used and to move on to API 3 and that almost all functionality for API 2 will be disabled as of April 20 2015.
This is a great module, very simple and very useful.
Will you be upgrading to API 3?
Comment | File | Size | Author |
---|---|---|---|
#9 | youtube_pull-fix-issues-and-add-improvements-2476851-9.patch | 10.17 KB | leolandotan |
#9 | interdiff-2476851-7-9.txt | 1017 bytes | leolandotan |
#8 | youtube_pull-fix-issues-and-add-improvements-2476851-7.patch | 10.26 KB | leolandotan |
#8 | interdiff-2476851-5-7.txt | 4.33 KB | leolandotan |
#5 | Stopped_working_as_of_April_20th_2015_2476851_5.patch | 9.52 KB | sothish |
Comments
Comment #1
flamez-b CreditAttribution: flamez-b commentedHi,
The Youtube API 2 has totally stopped working. The module is now useless.
Anybody found solution to make it work with the API 3?
Or we just have to move to another module?
Comment #2
jkealy CreditAttribution: jkealy commentedYes, we can confirm this is not working. Anyone considering else working on a fix? We might boil something up...
Comment #3
ckngNot using the module myself at the moment, feel free to make a patch.
Comment #4
widukind CreditAttribution: widukind commenteda few things to consider when re-implementing this module to work with youtube api v3:
1. it may make sense to leverage the API Client libs that Google provides: https://developers.google.com/api-client-library/php/. However, they are currently not whitelisted for inclusion with modules hosted on d.o https://www.drupal.org/project/drupalorg_whitelist. So this may have to be green-lit first.
2. Another option would be to cobble something together from various existing building blocks (contrib modules). I'm looking at https://www.drupal.org/project/oauth2_client handling authn and a JSON parser for processing the payload (PHP's JSON extension should do here).
Comment #5
sothish CreditAttribution: sothish as a volunteer and commentedI have a patch for this, please find it attached. below the list of items
- Upgrading to Youtube API V3
- Adding admin form
- Handling uninstall
Comment #6
sothish CreditAttribution: sothish as a volunteer and commentedComment #7
leolandotan CreditAttribution: leolandotan as a volunteer and at Promet Source commentedI have tested the provided patch above and can see that it is indeed able to connect using Youtube's V3 API but I made a little fix for it specifically in this module's admin configuration form. I'll try to post my patch also.
Change the form array key "youtubechannel_video_limit" to "youtube_pull_video_limit" so that it matched the variable being set.
Remove the additional spaces or special character(s).
Please add a period after the docblock sentence.
I think this should be named/keyed better. What are your thoughts on this?
Please start the comment sentence with a capital letter.
Please start the comment with a capital letter and end it with a period.
Hope everything is in order.
Thanks!
Comment #8
leolandotan CreditAttribution: leolandotan as a volunteer and at Promet Source commentedHere is a patch where I:
Usage of the `$options` variable can now look like this:
Hope everything is in order.
Thanks!
Comment #9
leolandotan CreditAttribution: leolandotan as a volunteer and at Promet Source commentedApologies for my previous comment and patch. In this patch I did the following:
Hope everything is in order.
Thanks!