Youtube videos now broken due to V2 api

For all things BigCommerce.. Chat, sharing ideas, links to tips and ways to make things work.
Post Reply
myshop
Posts: 51
Joined: Tue Jun 23, 2009 5:48 am
Location: NSW Australia
Contact:

Youtube videos now broken due to V2 api

Post by myshop »

Hi

The search for youtube feature in the images/video's tab of the add/edit product feature is now broken due to youtube shutting down their v2 api.

The videos that were previously inserted still play on the site - So the actual embedding code is still the same.. so its just the search function in the admin area thats the issue.

I would pay a bounty of $150 to get a fix to this.
myshop
Posts: 51
Joined: Tue Jun 23, 2009 5:48 am
Location: NSW Australia
Contact:

Re: Youtube videos now broken due to V2 api

Post by myshop »

$200!
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

Re: Youtube videos now broken due to V2 api

Post by Martin »

Ah... so that's what happened... Did wonder...

Do I hear $300? ;)

Will see if I can find an easy fix but don't know the API for youtube so may be false hope at this point..
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

Re: Youtube videos now broken due to V2 api

Post by Martin »

Hmm... ok... Taken a look at the code and it seems there's a few files that need altering (probably more I haven't found yet) so I'll make some notes and see what I can come up with...
  1. API version 2 used XML in the response so any calls need to be reinterpreted to use JSON arrays, not XML
    Files to attack:
    • lib/class.youtube.php
    • admin/includes/classes/class.remote.php
  2. Need the PHP libs for Google API
  3. Need to understand the process required for authenticating any API requests (do we need for basic searches I wonder?)
Looking at it, it seems like it should be relatively simple to achieve the basics of getting some results... Pagination of results looks to be more difficult due to the way the API won't accept start-index anymore but requires a token generated in the original search request..

I'll see what I can do when things are less frantic... And I'll hold you to that $200 if I manage it but it'll be going to charity... ;)
myshop
Posts: 51
Joined: Tue Jun 23, 2009 5:48 am
Location: NSW Australia
Contact:

Re: Youtube videos now broken due to V2 api

Post by myshop »

Hi

hehe.. ok sounds good. $250 it is - get a move on :-P
wurdz
Posts: 3
Joined: Sun Dec 11, 2011 8:39 pm

Re: Youtube videos now broken due to V2 api

Post by wurdz »

Hi all! I just finished updating and testing ISC 6.1.x Youtube API v3 integration. Wow, what a pain! :D There were a number of changes needed....

Read about it here: http://modirific.com/interspire/youtube ... -3-update/
Contact us here, if you're interested in purchasing: http://modirific.com/contact

Image

Best regards,
Jon Catoe

P.S. I'm working on some other fixes, updates, upgrades, improvements, and general awesomeness....
myshop
Posts: 51
Joined: Tue Jun 23, 2009 5:48 am
Location: NSW Australia
Contact:

Re: Youtube videos now broken due to V2 api

Post by myshop »

I got another programmer to sort this out for me.. Ended up only needing to edit a small handful (4 I think) files.. Works well, but requires a youtube API Key (free)
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

Re: Youtube videos now broken due to V2 api

Post by Martin »

myshop wrote:I got another programmer to sort this out for me.. Ended up only needing to edit a small handful (4 I think) files.. Works well, but requires a youtube API Key (free)
Glad you got it fixed... I was suitably awful at getting to it... Just no time to actually sort it out and got worse with arrival of a baby girl back in October.

What did it end up costing you?
myshop
Posts: 51
Joined: Tue Jun 23, 2009 5:48 am
Location: NSW Australia
Contact:

Re: Youtube videos now broken due to V2 api

Post by myshop »

Hi Martin

Was cheap :-) I had a local programmer sort it for me. From memory $100 AUD.

Edit: Was actually 400. hehe
Martin
Site Admin
Site Admin
Posts: 1854
Joined: Wed Jun 17, 2009 6:30 pm
Location: South Yorkshire UK
Contact:

Re: Youtube videos now broken due to V2 api

Post by Martin »

myshop wrote:Was cheap :-) I had a local programmer sort it for me. From memory $100 AUD.

Edit: Was actually 400. hehe
LOL... Mates rates eh? You sure it wasn't 1,600 USD? ;)
Post Reply