highest safe dose of levitralevitra takecompare levitra cialis viagrageneric levitra onlinecheap herbal vardenafillevitra online uklevitra increases sperm countwomen\s vardenafillevitra samplelevitra slide kitmail order levitralevitra prescription onlinesoft levitraPurchase Levitra pillthe buy levitrageneric levitra canadaproduct team levitravardenafil 90 pills Buylevitra sale 32free sample prescription for levitralevitra trial offermedication levitranon prescription vardenafillevitra online shop in uklevitra medicareinformation levitralevitra on line saleslevitra japanqry vardenafilSale vardenafil 20 pillscheap herbal levitraidentify vardenafillevitra alternative lavitraflomax levitraGeneric Levitra 20 mg Salelevitra couponus vardenafilbuy levitra 10mglevitra commercial modelsforum levitraOnline vardenafil Courier shipping10 mg vs 20 mg levitralevitra dosage directionstoo much levitrawhere to puchase vardenafil onlinecheap levitra on linecialis levitra vardenafilhow levitra workqueen levitravardenafil 180 pills orderlevitra beogradlevitra birth control pillslevitra orallow cost alternatives and vardenafilLevitra 120 pills BuyBuy vardenafil Free Airmail shippingordering levitra onlinecialis levitra viagra comparebuy vardenafil online australiaorder levitra cheap pricevardenafil saleanyone tried generic levitravardenafil softabsbuy levitra viagra onlinelevitra user reviewneed for increasing amounts of levitralevitra online purchasewhat is vardenafilvardenafil rrp australia costvardenafil fast shippingvardenafil no prescriptionlevitra online gamblingviva levitrawomen taking levitradiscount vardenafil onlinelevitra sampleslowest price levitra generic onlinelevitra penslevitra and flomaxpurchase levitra 60 pillslevitra side effectorder Levitra 10 mgalternative to levitraby levitra priceBuy vardenafil Courier shippinguk alternative vardenafillevitra sarasota floridaprice on levitralevitra or viagra which is betterlevitra from canadalevitra ad reviewtry levitra for freeacheter du levitrawholesale vardenafillevitra where to buycomparison levitra cialistoo much vardenafilcomparison of levitra and viagradosage for levitrageneric mexican levitrahow to buy levitragenuine vardenafilcialis levitra viagra which is bettervardenafil onlinerelative costs of cialis levitraget vardenafil drug onlinelevitra vs viagra vs cialisorder levitra 30 pillssample of vardenafildiscount cialis levitra online canadanatural equivelant ingredient in levitraorder levitravardenafil 20 pills onlinecialis vardenafilreviews of viagra cialis and levitraeuropean vardenafilcanada in levitraPurchase Generic vardenafil 20 mglevitra 100mglevitra propafenoneinfo levitrauk levitra saleswoman\s levitraOnline Levitra 120 pillspurchase vardenafil 10 mggeneric levitra tab 20mgvardenafil australiacompare viagra to levitravardenafil 6 free samplesvardenafil canadian drugslevitra generikaOnline Levitra 20 mgwhat does vardenafil dovardenafil uterine thicknesslevitra hourslevitra cost of salesGeneric Levitra 10 mg ordervardenafil lengthvardenafil sideviagra cyalis levitra comparedlevitra pictureslevitra for salevardenafil online cheapLevitra 20 pills BuyLevitra Free Airmail shipping onlinebuy levitra online atgeneric levitra manufacturermaximum dosage levitravardenafil Courier shipping SaleSale vardenafil 10 pillswhat is better levitra or viagradifference between cialis levitra viagralevitracialis compare levitramedical drug levitravardenafil patent levitraprice levitralevitra tablevardenafil vs cialisvardenafil 180 pills Buyeffects of levitraget levitra drug onlinedreampharmaceuticals from levitranew erectile drug vardenafilover the counter levitrabuy levitra australiangeneric vardenafil indiacialis dysfunction erectile levitralevitra side effects visiondiscount levitra pillsOnline vardenafil Free Insurancecanadian pharmacy levitralevitra low costlevitra reviewsPurchase Generic Levitranew erectile drug levitravardenafil usevardenafil pricinglevitra herb alternativeOrder Generic vardenafil 20 mgvardenafil max complaintsfree vardenafil sampleslevitra or viagraSale Levitra 10 mglevitra lowest pricecheap vardenafil siproblems with levitralevitra suppliers in the ukwatermelon levitralevitra to buy new zealandmedicine levitralevitra 10 mg tabletbuy levitra online dream pharmaceuticalsoft levitra mastercardlevitra ingredientsvardenafil perscription onlinegeneric levitra cheapcanadian vardenafillevitra and price listvardenafil hcl 20 mgbayer levitra onlinefree trial of vardenafilbuy levitra delived fed exrecreational levitra usekey buy levitra onlinelevitrabuy cheap levitra onlineGeneric vardenafil 10 mg onlineorder cheap levitra faslevitra by bayervardenafil 30 pills onlineship free vardenafil sampleregalis vardenafilbuy levitra usvardenafil super activeLevitra 180 pills Buydrug levitra newvardenafil purchasevardenafil 30 pills orderprofessional levitra627 discount levitra online 903levitra and premature ejaculationpfizer vardenafilcialis levitra or viagralevitra twice a daysnorting levitraorder 50mg levitrabuy Levitra 10mgLevitra pills Buybuy cheap levitra onlinelevitra vs cialis reviewbrand name levitratake levitralevitra pill pricevardenafil optionslevitra cialis for womenhow to get levitravardenafil alternativespharmacy vardenafilbuy levitra ukvardenafil hcl 20mg tab side effectsbuy levitra in ukgeneric levitra professionallevitra efectosgeneric levitra effectiveorder vardenafil 10 mg2buy levitra online viagralevitra worksflomax and levitraSale Levitra Airmail shippingclinical data levitrageneric levitra soft tab fasti have levitrarx levitravardenafil 120 pillsbuy vardenafil meds onlinevardenafil online no prescriptionis vardenafil professional realcheap vardenafil walmartuk levitrabuy levitra in canadavardenafil from indiafree sample pack of levitramature vardenafilhow long is levitra effectivelevitra price comparisonlevitra storyvardenafil effekter biverkningarvardenafil for teenscheapest levitra in ukfda on levitralevitra fedexgeneric vardenafil mexicosample levitralevitra best resultslevitra substitutelevitra generic soft tabsafe maximum levitra dosagelevitra online cheapLevitra pills onlinevardenafil free sampleslevitra dysfunction erectilelevitra rxlevitra from mexicovardenafil drug prescriptionvardenafil discountsOrder vardenafil Free Insurancelevitra precautionsbuy buy cheap cheap levitra levitralevitra v s levitravardenafil sex dominationlevitra success storieslevitra for womanvardenafil 20 mg paypallevitra sverigecheap levitra overnightOrder Levitra Airmail shippingbuy vardenafil 10 pillscounterfeit levitrabuy levitra 30 pillsvardenafil suppliers in the ukvardenafil effective timeLevitra Courier shipping orderorder levitra from canadabuy drug satellite tv levitralevitra 20order vardenafillevitra wholesale onlinelevitra fast overnight delivery usa onlyuser review levitracialis and levitra generic brandgeneric levitralevitracialis generic levitra viagralevitra online usdoes levitra look likebuy levitra lowest pricescompare viagra levitralevitra on linesample of levitraviagra cialis levitra candian pharmacy safecheap vardenafil nzprice of vardenafilbuy online vardenafilnatural levitrageneric levitra pillsnatural equivalent ingredient in vardenafilordering vardenafillevitra free pillsbuy vardenafil in uklevitra order2buy generic levitralevitra pay with paypalvardenafil in uk onlineglaxo levitravardenafil and commercialvardenafil 50 mglevitra with lisinoprilwhat does levitra dobuy levitra medicationlevitra couchcan a woman take levitravardenafil 10mgreal levitralevitra offervardenafil 10 pills Buylowest prices for levitracanada vardenafilfree levitra pillscheapest online cost for levitravardenafil generic pricevardenafil gelvardenafil mexicovardenafil ukon levitralevitra discussiongeneric name of levitrabuy vardenafil 30 pillslevitra price walmartlevitra time effectiveLevitra Free Airmail shipping Salevardenafil wholesale onlinelevitra andacheter levitra francecheap vardenafil 20 mgwoman in levitra commercialpill identification levitrageneric discount levitralevitra 20 mg dosagelevitra interactionsoriginal levitrapurchase vardenafil 10mgbuy levitra online in 24 hoursvardenafil for sale without a prescriptionlevitrabuy levitra onlineLevitra 10 mg onlineviagra medication prescription levitra cialis propecialevitra anwendungviagra cialis levitra vpxlcan woman take levitrabuy levitra upsLevitra 90 pills BuySale vardenafil pillovernight vardenafilvardenafil reviewslevitra drugswatermellon vardenafilbuy levitra without prescriptionquery lowest levitra price onlinebuying levitra onlinelevitra generic priceusing levitralevitra for freegeneric viagra levitra generic cialis pillsvardenafil testimonialGeneric Levitra 20 mg ordervardenafil on linevardenafil Free Airmail shipping onlinehow long will levitra lastq buy levitraorder discount levitraviagra levitra cialis offerslevitra and bayercheap pharmacy viagra cialis levitralevitra vs viagra reviewswomans levitraburing levitra onlinelevitra softbuy cheap levitralevitra drug prescriptionbuy levitra in englandvardenafil Salevardenafil for daily useactress in levitra commercialbuy levitra with pay palcheap vardenafil overnightindia vardenafilvardenafil pill orderbuy levitra online 35008 buylevitra pill cuttervardenafil sizevardenafil uk cost pillvardenafil 60 pills onlinegeneric soft tabs vardenafilkey buy levitra cheaplevitra cheap buy onlinelow price vardenafilcheap vardenafil tabletslevitra onlinevardenafil 20 mg orderblindness cialis levitravardenafil levitra onlinelevitra faqsplitting levitravardenafil in ukvardenafil lowest priceprozac interactions with viagra cialis levitrakeywords cialis levitra sales viagrahow quick does levitra workwhat is levitra productPurchase vardenafil Free Airmail shippingLevitra 20 mgcomparison of cialis levitra and viagraovernight shipping of professional vardenafilbenefits of levitralevitra vs viagra which is better2buy cheap levitra onlinelevitra prices american pharmaciesvardenafil online overnightdiscount levitra cialis viagrabuy cheap levitra xanax xenicalorder levitra onlinecheapest vardenafil substitute vardenafilbuy vardenafil cialasbuy cheap generic levitra pharmacy onlinelevitra soft tablevitra third quarter 2004 saleslevitra bestellenvardenafil fedexviva levitra commercialLevitra Courier shipping Salecheapest vardenafil professionalLevitra 10 pills Buycheap vardenafil canadaOnline Levitra Free Airmail shippingfull information levitradiscounted vardenafillevitra substitutesLevitra 20 mg Buylevitra 20 mg bayerbuy vardenafil delived fed exforeign cialis levitra pillswomen vardenafilvardenafil overnight shippingcan women use levitravardenafil Buyvardenafil propafenonelevitra provardenafil impotence drug eli lilly cobuy levitra viagralevitra web siteship free levitra sampleorder levitra without prescriptionfree levitra onlinesuper levitralevitra in ukcompare viagra 26 levitra2cheap levitra onlineOrder vardenafilvardenafil Courier shipping orderbuy vardenafilvardenafil storieslevitra successdiscount levitra purchasecheapest levitra substitute sildenafillevitra cialis viagra comparebuy vardenafil online in ukLevitra 20 mg onlineordering levitraconnecticut levitra vardenafillevitra productsLevitra Free Airmail shipping BuyGeneric vardenafil 10 mg Sale
intense creativity » YouTube Data API - new rollout

YouTube Data API - new rollout

Hi Everyone,

YouTube released a few days ago a new version of their data API. You can now interact with the system; you are no longer limited to simply retreiving publicly available information. You can now

  • Add, Remove and Modify Favorites
  • Create, Modify and Delete Playlists
  • Add To, Remove From and Reorder Playlists
  • Upload, Delete and Update Videos
  • Rate and Comment Videos
  • ...

To enable these actions, you need to login through the standard Google API Authentication procedure. I have succeeded in doing so, and using all the actions mentionned above that can be done using POST and GET. However I realized that with Flash CS3 you are not allowed to use PUT & DELETE http methods.

I have found a project called as3-active-request, which enables HTTP requests using a Socket, which would let you do anything you want. I'm unsure as to the exact security policy of using the Socket, I had a hard time with XMLSocket a while back when coding a Jabber enabled Chat Client.

Basically I'm digging into the problem, I hope to have this resolved tomorrow at some point! If anybody can help me out, i'd appreciate it!

UPDATE 2008-03-13 (hey i'm 29 today!)

So after lotsa digging, fixing, playing around; it's pretty clear that doing PUT and DELETE HTTP commands from Flash Player is impossible w/o the HTTPService class from Flex. My personal problem is that just to use that class I end up with a 130k+ SWF. I use FlashDevelop, so I created a Default Project then added this code to the main class:

Actionscript:
  1. package
  2. {
  3.     import flash.display.Sprite;
  4.     import mx.rpc.events.FaultEvent;
  5.     import mx.rpc.events.ResultEvent;
  6.     import mx.rpc.http.HTTPService;
  7.    
  8.     public class Main extends flash.display.Sprite
  9.     {
  10.         public function Main():void
  11.         {
  12.             var videoId:String = "JKf7pPj6T7M";
  13.            
  14.             var service:HTTPService = new HTTPService();
  15.             service.method = "GET";
  16.             service.url = "http://gdata.youtube.com/feeds/api/videos/" + videoId;
  17.             service.addEventListener(ResultEvent.RESULT, doResult);
  18.             service.addEventListener(FaultEvent.FAULT, doFault);
  19.             service.resultFormat = "text";
  20.             service.send( { alt:"json" } );
  21.         }
  22.        
  23.         private function doResult(evt:ResultEvent):void
  24.         {
  25.             trace("doResult:"+evt.result);
  26.         }
  27.        
  28.         private function doFault(evt:FaultEvent):void
  29.         {
  30.             trace("doFault:"+evt.fault);
  31.         }
  32.     }
  33. }

You end up with a 130k+ file, plus it doesn't even work, saying that:

CODE:
  1. Error: No class registered for interface 'mx.resources::IResourceManager'.
  2.     at mx.core::Singleton$/getInstance()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Singleton.as:111]
  3.     at mx.resources::ResourceManager$/getInstance()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\resources\ResourceManager.as:83]
  4.     at mx.rpc.http::HTTPService$iinit()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\http\HTTPService.as:217]
  5.     at Main$iinit()[C:\work\web\New Project\classes\Main.as:14]

Whatever that means. I'm not a fan of Flex at all, I can do everything myself in pure AS3, BUT I can't do DELETE and PUT HTTP Requests with URLLoader, and using a Socket, well the documentation says clearly that:

The calling SWF file and the network resource being accessed must be in exactly the same domain. For example, a SWF file at adobe.com can connect only to a server daemon at adobe.com.

Making it useless for calls to webservices like YouTube or Flickr or others.

Basically, I'm stuck. So for now, there won't be any support for Updating and Removing calls in the YouTube Data API.

In the meantime, you can still use the library as it is, which you can find here.

Cheers!

Martin



Related posts (automatically generated):

  1. YouTube Data API ActionScript 3
  2. Youtube Data API in AS3 is ready!
  3. Youtube Data API AS3 - First Tutorial
  4. Youtube Data API AS3 - YouTubeClient functions & associated events.
  5. Sample Code - Using the YouTube AS3 API with the YouTube Player API


13 Responses to “YouTube Data API - new rollout”

  1. Sönke Rohde » AS3/Flex and the new YouTube API says:

    [...] The first one has a Flash CS3 tutorial and uses the JSON stuff of the Open Source AS3 library corelib. But then I realized that the new features like uploading videos where not covered yet. Then I came to the blog of the author Martin Legris who blogged that he had problems using the new API. [...]

  2. Nick says:

    AS2 compatible with Youtube API? On a personal level, great blog!

  3. Romain says:

    Did you succeed in using upload function from Youtube API wit AS3?

  4. Subeesh says:

    You have done a wonderful job in creating the API.
    I tried to use your API in a Flex application.

    Take a look here

    http://subeesh.wordpress.com/2008/05/20/youtube-interface-in-flex/

  5. Robert says:

    hi!!
    i have a flash who call a youtube video, but i don’t know how can i take out the button in the video that links to youtube site…

    i would like to have a nice fullscreen intro in my flash with youtube videos without possibility to click in the video, because on the top of the video i want to put a menu, contents, bla bla bla

    it is possible with the api… i’ve tried something like that but is not working
    ytplayer.enabled=false;

    thanks a lot!!

    Robert

  6. mlegris says:

    Nick: no the API is AS3 only… thanks for the comment.

  7. mlegris says:

    Robert: simply put a sprite over the video that is playing (in the same container), draw a transparent fill into it (beginFill(0,0)) and that should do it!

    When you put items one over the other in AS3, unlike in AS2, it will cancel the events being fired on the elements underneath.

    In AS2 you needed to catch the events on the transparent MovieClip above the one you wanted to make inactive, but not so in AS3.

    Hope this helps!

  8. mlegris says:

    Romain: I haven’t tried yet, but I don’t think it’s impossible. I’ve been particularly busy lately.. I will start working on the API again in the next weeks.

  9. Robert says:

    taht works!!!
    … i am working in as2 and i made the movieclip inactive when i catched its event

    thanks mlegris

  10. Andres says:

    Regarding the Socket security issue, you can get around that restriction only if the network source contains a crossdomain.xml policy file that allows all ip addresses to connect to a specific port (ie 80) via the Socket class

    http://gdata.youtube.com/crossdomain.xml

    We just got to get Google to add this entry to their policy file

  11. Andres says:

    Oops. The comment system removed this from my previous post.

    allow-access-from domain=”*” to-ports=”80″

  12. dehash says:

    Great library. Made a quick example in Flex using your library @ http://www.dehash.com/?p=75

    Quick question:
    in ca.newcommerce.youtube.webservice.YouTubeFeedClient
    _developerKey value is hard coded, should it be replaced with the developers key or is it not used ?

    -dehash

  13. Tchiky says:

    Hi! Very nice post…
    Try the new youTube API example where you can
    search videos by keywords: tv, music, series, sports, entertainment, etc.
    the url of tv243 is http://www.tv243.com/

    Thanks for all

Leave a Reply