TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-28-2009, 02:47 PM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default YouTube API

I want to implement the YT API for my framework, but it's only available for Zend, how would I go about creating my own?
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 04-28-2009, 03:48 PM   #2 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Either just take those Zend classes, or create your own. The former is quick but might not be precisely what you want. The latter is more time consuming but will be exactly what you want for your framework.

If you haven't already, go read the YouTube APIs documentation. After digesting the wealth of information there, get cracking with the code.
Salathe is offline  
Reply With Quote
Old 04-28-2009, 04:42 PM   #3 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Salathe View Post
Either just take those Zend classes, or create your own. The former is quick but might not be precisely what you want. The latter is more time consuming but will be exactly what you want for your framework.

If you haven't already, go read the YouTube APIs documentation. After digesting the wealth of information there, get cracking with the code.
Well I don't like to take code from other frameworks and put it into my own, so I'll guess I'll have to go the harder route even though I don't know where to begin on making my own library for the youtube api.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 04-28-2009, 04:59 PM   #4 (permalink)
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

I just installed the Zend framework for precisely this, but not for the youtube API although it does come with it...
allworknoplay is offline  
Reply With Quote
Old 04-28-2009, 08:44 PM   #5 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

I love the Zend Framework YouTube API.
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
Old 04-28-2009, 10:06 PM   #6 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Wildhoney View Post
I love the Zend Framework YouTube API.
Too bad I'm working on my own framework, and it's categorized as an extension. :D
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
The Following User Says Thank You to Orc For This Useful Post:
Sakakuchi (04-30-2009)
Old 04-28-2009, 10:49 PM   #7 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

This is a pretty general question, it seems that you are dumping quite a load on us while not showing that you have done any work at all towards it. What research have you done on this?

You could probably get most of your ideas from the zend extension code. You don't have to use the exact code, but it could at least show you how to do things.
__________________

Village Idiot is offline  
Reply With Quote
Old 04-28-2009, 10:51 PM   #8 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Village Idiot View Post
This is a pretty general question, it seems that you are dumping quite a load on us while not showing that you have done any work at all towards it. What research have you done on this?

You could probably get most of your ideas from the zend extension code. You don't have to use the exact code, but it could at least show you how to do things.
Well I'm attempting that now, it's just that the code is all over the place, and methods like Load Class which load classes from outa no where.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 04-28-2009, 10:55 PM   #9 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

I briefly read though the code, it does look like a jumbled mess.
__________________

Village Idiot is offline  
Reply With Quote
Old 04-28-2009, 10:57 PM   #10 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Village Idiot View Post
I briefly read though the code, it does look like a jumbled mess.
It's quite funny too considering this is Zend Framework, I wonder who coded the api.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 05-02-2009, 01:22 AM   #11 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by Orc View Post
It's quite funny too considering this is Zend Framework, I wonder who coded the api.
I'm using the .net API for youtube and quite liking it. Its seems far better than the PHP version.
__________________

Village Idiot is offline  
Reply With Quote
Old 05-02-2009, 01:27 AM   #12 (permalink)
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by Village Idiot View Post
I briefly read though the code, it does look like a jumbled mess.
Quote:
Originally Posted by Orc View Post
It's quite funny too considering this is Zend Framework, I wonder who coded the api.
How is this possible? Doesn't Zend have super duper smart PHP programmers that go out of their way to write clean code?

When I hear you guys confirming that the code is a jumbled mess (I'm not proficient in PHP enough to tell) it just makes my head shake.

Isn't there some kind of QA for the code that gets put out?

Don't they have other programmers that read the code and say, "WTF is this? It's a jumbled mess!"
allworknoplay is offline  
Reply With Quote
Old 05-02-2009, 01:31 AM   #13 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by allworknoplay View Post
How is this possible? Doesn't Zend have super duper smart PHP programmers that go out of their way to write clean code?

When I hear you guys confirming that the code is a jumbled mess (I'm not proficient in PHP enough to tell) it just makes my head shake.

Isn't there some kind of QA for the code that gets put out?

Don't they have other programmers that read the code and say, "WTF is this? It's a jumbled mess!"
This API is made for use with the zend framework, it was not made by zend. I have no experience with anything to do with zend, so I can not comment on them being the guys who should be doing it cleanly.
__________________

Village Idiot is offline  
Reply With Quote
Old 05-02-2009, 03:45 AM   #14 (permalink)
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by Village Idiot View Post
This API is made for use with the zend framework, it was not made by zend. I have no experience with anything to do with zend, so I can not comment on them being the guys who should be doing it cleanly.
ahhh ok! I was confused...
allworknoplay is offline  
Reply With Quote
Old 05-05-2009, 05:31 PM   #15 (permalink)
The Visitor
 
Join Date: May 2009
Posts: 1
Thanks: 0
jhartmann is on a distinguished road
Default

Hi,

I am a regular contributor to the Zend_Gdata component and have written a large portion of the YouTube API extensions. Can you let me know what exactly you are having trouble with? I want to make sure what makes you think that the code is a 'jumbled mess'.

We do use the Zend_Loader component to load required classes when needed and to lazy-load exceptions. Can you help me understand how this is a problem for you?

Thanks
- Jochen
jhartmann is offline  
Reply With Quote
Old 05-05-2009, 09:04 PM   #16 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by jhartmann View Post
Hi,

I am a regular contributor to the Zend_Gdata component and have written a large portion of the YouTube API extensions. Can you let me know what exactly you are having trouble with? I want to make sure what makes you think that the code is a 'jumbled mess'.

We do use the Zend_Loader component to load required classes when needed and to lazy-load exceptions. Can you help me understand how this is a problem for you?

Thanks
- Jochen
At the moment, I'm learning Zend Framework, and so far I'm loving all of it, I prefer it over other frameworks to build client applications ( I'm a freelancer ), so I'm probably just going to extend it to my own needs, since I'm well enough of an expert myself.

Basically, like a sub/child/leaf ( w/e ) framework to Zend, only problem is if I do so, how should I manage to add the newer frameworks on top of it?
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Youtube RSS Grabber - Beta V.0.1. codefreek Script Giveaway 6 10-24-2008 12:30 AM
anyone want to know how to stream video like youtube? sarmenhb Absolute Beginners 10 10-17-2008 07:25 PM
how is youtube doing this anyone know? sarmenhb XHTML, HTML, CSS 1 10-16-2008 10:28 AM
update on my youtube rss grabber need help. [NO FLAME] codefreek Absolute Beginners 13 07-14-2008 02:30 PM
Youtube Videos Haris Advanced PHP Programming 10 02-17-2008 09:35 PM


All times are GMT. The time now is 07:37 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design