Jump to content

2 posts in this topic

Recommended Posts

Posted (edited)

What's API ?
Application Programming Interface. A language and message format used by an application program to communicate with the operating system or some other control program such as a database management system (DBMS) or communications protocol. APIs are implemented by writing function calls in the program, which provide the linkage to the required subroutine for execution. Read More Here
 
YouTube Data API
The YouTube Data API allows client applications to retrieve and update YouTube content in the form of Google Data API feeds. Your client application can use the YouTube Data API to fetch video feeds, comments, responses, and playlists, as well as query for videos that match particular criteria. You can also use the API to make authenticated requests to modify this information and to upload new video content to the site. Read More Here
 
Preparations
We first need to install the Google Data Libraries. Head up to http://code.google.com/p/google-gdata/downloads/list then download and install the latest version ( Google_Data_API_Setup_2.0.1.0.msi ). Once done go to http://code.google.com/apis/youtube/dashboard/ ( you need a Gmail for this ) and get yourself an API key.
 
Getting Started
Open a New VB.net Project and add Google.GData.Client.dll, Google.GData.Extensions.dll, Google.GData.YouTube.dll to the references they are located where you installed the Libraries( mine were in C:\Program Files\Google\Google Data API SDK\Samples )
 
 
Step 1
 
Import the libraries to your project :



Imports Google.GData.Client
Imports Google.GData.Extensions
Imports Google.GData.YouTube
Imports Google.GData.YouTube.YouTubeService
Imports Google.GData.Extensions.MediaRss
Imports Google.YouTube
Imports System.Management
Imports System.Net
Imports System.IO

 

Step 2
 
We should authenticate our account by adding our credentials settings, the key you made before.
 

Dim Settings As YouTubeRequestSettings
Dim Request As YouTubeRequest
Settings = New YouTubeRequestSettings("Application Name", "Your Api Key", "Any Youtube Username", "Any's Password")
Request = New YouTubeRequest(settings)

So basically every time you want to execute something ( like,comment,subscribtion..) you'll have to define the user credentials (Username and Password )
 
 

Step 3
 
After we declared ourselves to the API it's time to define the YT (YouTube) video we will be using.
 

Dim VideoUri As Uri
Dim TheVideo As Video
VideoUri = New Uri("http://gdata.youtube.com/feeds/api/videos/" + "Video ID")
TheVideo = request.Retrieve(Of Video)(VideoUri)

Define Uri : Provides an object representation of a uniform resource identifier (URI) and easy access to the parts of the URI. Read more About Uri
Video ID : Let's take http://www.youtube.com/watch?v=cPi85qp-V1A as example. The Video ID is cPi85qp-V1A
 
 

Step 4
 
Step 3 was the final step in the authentication, the funny parts can now get started.
 
To Like (Rate) a Video:
 

TheVideo.Rating = 5;
request.Insert(TheVideo.RatingsUri, TheVideo);

To Dislike a Video:
 

TheVideo.Rating = 1;
request.Insert(TheVideo.RatingsUri, TheVideo);

To Retrieve video comments:
 

Dim comments = request.GetComments(TheVideo)
Dim c As Comment
  For Each c In comments.Entries
    MsgBox(c.Content)
  Next

To Add video comment:
 

Dim c As Comment = New Comment()
c.Content = "Comment Content"
request.AddComment(TheVideo, c)

To Subscribe to a Video channel:
 

Dim s As Subscription = New Subscription
s.Type = SubscriptionEntry.SubscriptionType.channel
s.UserName = TheVideo.Uploader
request.Delete(s)

To Add a Video as Favorite:
 

Dim videoEntryUrl As String = "http://gdata.youtube.com/feeds/api/videos/" + "Video ID"
Dim service As YouTubeService = request.Service
Dim videoEntry As YouTubeEntry = service.Get(videoEntryUrl)
Dim feedUrl As String = "http://gdata.youtube.com/feeds/api/users/default/favorites"
service.Insert(New Uri(feedUrl), videoEntry)

To Remove a Video as Favorite:
 

Dim videoEntryUrl As String = "http://gdata.youtube.com/feeds/api/videos/" + "Video ID"
Dim service As YouTubeService = request.Service
Dim videoEntry As YouTubeEntry = service.Get(videoEntryUrl)
Dim feedUrl As String = "http://gdata.youtube.com/feeds/api/users/default/favorites"
request.Delete(videoEntry)

To Flag a Video:
 

Dim c As Complaint = New Complaint
c.Type = ComplaintEntry.ComplaintType.pron
c.Content = "This video contain pronographic scenes"
request.Insert(TheVideo.ComplaintUri, c)

You can change the complaintype to Hate,pron,Rights,Spam,Violence,Unknown.
 
 
 
 

Enjoy and don't forget to say thanks

Updated by DiDA

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Subway Surfers Cheats v3.52.1 +5
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Free Store (not Free iAP)
      - Free iAP (ViP Only)
      - Unlock Characters Outfit
      - Custom Jump Height
      - No Clip (To end level swipe to left til you get dizzy, swipe again and you will lose)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/119795-subway-surfers-v3425-jailed-cheats-5/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/119793-subway-surfers-cheats-v3430-5/
        • Agree
        • Haha
        • Thanks
        • Like
      • 2,361 replies
    • Sniper 3D: Gun Shooting Games Cheats v5.32.0 +7
      Modded/Hacked App: Sniper 3D Assassin: FPS Battle By Fun Games For Free
      Bundle ID: com.fungames.sniper3d
      iTunes Store Link: https://itunes.apple.com/us/app/sniper-3d-assassin-fps-battle/id930574573?mt=8&uo=4&at=1010lce4



      Hack Features:
      - Infinite Coins Only (Upgrade Weapon and Speed up Delivery with Coins)
      - Infinite Energy
      - Infinite Ammo / No Reload
      - No Spread
      - Unlock Premium Weapon - Semi

      NOTE: The game diamond currency is completely server-sided so do not request


      Hack Download Link: https://iosgods.com/topic/74114-arm64-sniper-3d-fps-battle-shoot-to-kill-2018-cheats-all-versions-7/

      Credits:
      - @Laxus
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 3,918 replies
    • Subway Surfers v3.52.1 +23 Jailed Cheats [ Currencies + More ]
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?uo=4


      Hack Features:
      - Unlimited Currencies
      - Freeze Currencies
      - Free In-App Purchases
      - All Characters Unlocked
      - All Boards Unlocked
      - God Mode
      - No Stumble
      - Score Multiplier
      - Speed Multiplier
      - Gravity Multiplier
      - Jump Height Multiplier
      - Air Jump Height Multiplier
      - Unlimited Jumps
      - Unlimited Powers
      - Instant Lane Change
      - Freeze Trains
      - No Clip
      - Disable All Pickup
      - No Revive Cost
      - Unlimited Jetpack Time
      - Camera Stops
      - Camera Follows


      Jailbreak required hack(s): [Mod Menu Hack] Subway Surfers v3.40.0 +20 Cheats [ Currencies + More ] - ViP Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Thanks
        • Winner
        • Like
      • 74 replies
    • Subway Surfers v3.52.1 +23 Cheats [ Currencies + More ]
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?uo=4


      Hack Features:
      - Unlimited Currencies
      - Freeze Currencies
      - Free In-App Purchases
      - All Characters Unlocked
      - All Boards Unlocked
      - God Mode
      - No Stumble
      - Score Multiplier
      - Speed Multiplier
      - Gravity Multiplier
      - Jump Height Multiplier
      - Air Jump Height Multiplier
      - Unlimited Jumps
      - Unlimited Powers
      - Instant Lane Change
      - Freeze Trains
      - No Clip
      - Disable All Pickup
      - No Revive Cost
      - Unlimited Jetpack Time
      - Camera Stops
      - Camera Follows


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Subway Surfers v3.40.0 +20 Jailed Cheats [ Currencies + More ] - ViP Non-Jailbroken Hacks & Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Winner
        • Like
      • 72 replies
    • Heroes Crew: Strategy Defense v1.3.51 [+12 Cheats]
      Modded/Hacked App: Heroes Crew: Strategy Defense By AlohaFactory
      Bundle ID: com.overdogs.heroes
      App Store Link: https://apps.apple.com/us/app/heroes-crew-strategy-defense/id6744350078?uo=4



      🤩 Hack Features

      - Add Currency
      - Unlimited Items
      - Unlimited Property (Heroes, Relic etc)
      - Activate VVip (Use after tutorial and only in main menu)
      - Activate Premium Hunt Pass (Use after tutorial and only in main menu)
      - Unlimited Battle Currency (Always Will Increase)
      • 113 replies
    • Heroes Crew: Strategy Defense v1.3.51 [+12 Jailed Cheats]
      Modded/Hacked App: Heroes Crew: Strategy Defense By AlohaFactory
      Bundle ID: com.overdogs.heroes
      App Store Link: https://apps.apple.com/us/app/heroes-crew-strategy-defense/id6744350078?uo=4



      🤩 Hack Features

      - Add Currency
      - Unlimited Items
      - Unlimited Property (Heroes, Relic etc)
      - Activate VVip (Use after tutorial and only in main menu)
      - Activate Premium Hunt Pass (Use after tutorial and only in main menu)
      - Unlimited Battle Currency (Always Will Increase)
      • 48 replies
    • Crunchyroll: Two Strikes v1.1.2 +2 Jailed Cheats [ Unlocked ]
      Modded/Hacked App: Crunchyroll: Two Strikes By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.twostrikes
      App Store Link: https://apps.apple.com/us/app/crunchyroll-two-strikes/id6742846993?uo=4

       


      🤩 Hack Features

      - God Mode *Online Untested*
      -- Full Game Unlocked
      • 7 replies
    • Crunchyroll: Two Strikes v1.1.2 +2 Cheats [ Unlocked ]
      Modded/Hacked App: Crunchyroll: Two Strikes By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.twostrikes
      App Store Link: https://apps.apple.com/us/app/crunchyroll-two-strikes/id6742846993?uo=4

       
       

      🤩 Hack Features

      - God Mode *Online Untested*
      -- Full Game Unlocked
      • 4 replies
    • Avalar: Raid of Shadow v02.76.10 +3 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Avalar: Raid of Shadow By Enigma Publishing Limited
      Bundle ID: com.vtwo.atwo.epl.as
      App Store Link: https://apps.apple.com/us/app/avalar-raid-of-shadow/id6745590551?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 27 replies
    • Avalar: Raid of Shadow v02.76.10 +3 Cheats [ Damage & Defence ]
      Modded/Hacked App: Avalar: Raid of Shadow By Enigma Publishing Limited
      Bundle ID: com.vtwo.atwo.epl.as
      App Store Link: https://apps.apple.com/us/app/avalar-raid-of-shadow/id6745590551?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 6 replies
    • Crunchyroll: Black Lily’s Tale v1.0 +1 Jailed Cheat [ Unlocked ]
      Modded/Hacked App: Crunchyroll: Black Lily’s Tale By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.blacklilystale
      App Store Link: https://apps.apple.com/us/app/crunchyroll-black-lilys-tale/id6742466129?uo=4

       
       

      🤩 Hack Features

      -- Full Game Unlocked
      • 1 reply
    • Crunchyroll: Black Lily’s Tale v1.0 +1 Cheat [ Unlocked ]
      Modded/Hacked App: Crunchyroll: Black Lily’s Tale By Crunchyroll, LLC
      Bundle ID: com.crunchyroll.gv.blacklilystale
      App Store Link: https://apps.apple.com/us/app/crunchyroll-black-lilys-tale/id6742466129?uo=4

       


      🤩 Hack Features

      -- Full Game Unlocked
      • 1 reply
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines