youtube /api

06/16/2012 18:58 Project Rivalry#1
Hallo ich suche jemand der mir hilft die youtube api für meine seite freizuschalten bzw einzubinden ^^ und dann vielleicht eine kleine einleitung in die iframe player api ich hab da grad so meine probleme.^^


wäre super nett

mfg

gamer
06/16/2012 22:53 Coding Lounge#2
Geht nicht.

Die Youtube API funktioniert nur mit .Net, also Computerbasiert.
06/17/2012 09:53 Doste#3
Quote:
Originally Posted by Coding Lounge View Post
Geht nicht.

Die Youtube API funktioniert nur mit .Net, also Computerbasiert.
Stimmt nicht ganz.

Schau mal hier:
[Only registered and activated users can see links. Click Here To Register...]
06/17/2012 11:14 Project Rivalry#4
nope die geht auch mit javascript ..... ich kriegs nur nich so ganz mit dem developer key hin...


[Only registered and activated users can see links. Click Here To Register...]
06/17/2012 15:42 Coding Lounge#5
In c# ging das so:

Code:
public static string appName = "Tube It !";
        public static string apiKey = "AI39si7_S1_vB64Mb7ByM2QPBGpt_Fe1fSiEdqBvMBAUl3QR5xOCoJ1o5Chs15vSUkKYv7fxPZfwk9OfASbgbh-***********;
06/18/2012 09:11 boxxiebabee#6
Quote:
Originally Posted by Coding Lounge View Post
In c# ging das so:

Code:
public static string appName = "Tube It !";
        public static string apiKey = "AI39si7_S1_vB64Mb7ByM2QPBGpt_Fe1fSiEdqBvMBAUl3QR5xOCoJ1o5Chs15vSUkKYv7fxPZfwk9OfASbgbh-***********;
Ehm, nein! Da speicherst du das nur in zwei Variablen ab, wenn du lustig bist kannst es auch in ne Textdatei, Array etc. speichern...
06/18/2012 16:23 Coding Lounge#7
Stimmt. Hier ist der zweite Teil:

Code:
public static class Settings
    {

        public static string appName = "Tube It !";
        public static string apiKey = "AI39si7_S1_vB64Mb7ByM2QPBGpt_Fe1fSiEdqBvMBAUl3QR5xOCoJ1o5Chs15vSUkKYv7fxPZfwk9OfASbgbh-***********";

        public static YouTubeRequestSettings settings;
        public static YouTubeRequest request;

    }

    public class headTube
    {

        public bool loginUser(string username, string password)
        {
            try
            {
                Settings.settings = new YouTubeRequestSettings(Settings.appName, Settings.apiKey, username, password);
                Settings.request = new YouTubeRequest(Settings.settings);

                Settings.request.Service.SetAuthenticationToken(Settings.request.Service.QueryClientLoginToken());

                return true;
            }
            catch (Exception ex)
            {
                
            }
        }