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

    • Primatus v1.0.1 [+6 Jailed Cheats]
      Modded/Hacked App: Primatus By 24 HIT Riga SIA
      Bundle ID: com.game.primatus
      App Store Link: https://apps.apple.com/us/app/primatus/id6742408324



      🤩 Hack Features

      - Free IAP
      - Never Die
      - Higher Resource Gain
      - Upgrade IQ Level (Use After Break Glass, Second stage)
      - Upgrade Tool Level (Use After Break Glass, Second stage)
      - Upgrade Weapon Level (Use After Break Glass, Second stage)
      • 2 replies
    • Primatus v1.0.1 [+6 Cheats]
      Modded/Hacked App: Primatus By 24 HIT Riga SIA
      Bundle ID: com.game.primatus
      App Store Link: https://apps.apple.com/us/app/primatus/id6742408324



      🤩 Hack Features

      - Free IAP
      - Never Die
      - Higher Resource Gain
      - Upgrade IQ Level (Use After Break Glass, Second stage)
      - Upgrade Tool Level (Use After Break Glass, Second stage)
      - Upgrade Weapon Level (Use After Break Glass, Second stage)
      • 2 replies
    • KungFu School v1.0.3 [ +11 Cheats ] Currency Max
      Modded/Hacked App: KungFu School By Xiamen Yiniao Game Technology Co.,Ltd.
      Bundle ID: com.kungfu.academyidle.gpos
      App Store Link: https://apps.apple.com/us/app/kungfu-school/id6482995529?uo=4


      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems 1

      - Gems 2

      - Coins

      - Water

      - Saga Fruit

      - Dragon Pearl

      - All Task Completed

      - HP - Weapon Status

      - ATK - Weapon Status

      - DEF - Weapon Status
      • 3 replies
    • KungFu School v1.0.3 [ +11 Jailed ] Currency Max
      Modded/Hacked App: KungFu School By Xiamen Yiniao Game Technology Co.,Ltd.
      Bundle ID: com.kungfu.academyidle.gpos
      App Store Link: https://apps.apple.com/us/app/kungfu-school/id6482995529?uo=4
       

      🤩 Hack Features

      - ADS NO [ Rewards Free ]

      - Gems 1

      - Gems 2

      - Coins

      - Water

      - Saga Fruit

      - Dragon Pearl

      - All Task Completed

      - HP - Weapon Status

      - ATK - Weapon Status

      - DEF - Weapon Status
      • 1 reply
    • Monster Legends: Collect all Cheats v18.1.2 +8
      Modded/Hacked App: Monster Legends: Merge RPG By Socialpoint
      Bundle ID: es.socialpoint.MonsterCity
      iTunes Store Link: https://apps.apple.com/us/app/monster-legends-merge-rpg/id653508448?uo=4

       

      📌 Mod Requirements

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

       

      🤩 Hack Features

      - 1 Hit Kill
      - Skip Enemy Turn
      - Multiply Attack
      - Multiply Defense
      - Insane Score (Always 3 Stars)
      - No Skill Cost
      - Auto Win
      - Auto Play Battle Enabled for All Maps


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/topic/140543-monster-legends-collect-all-v1778-5-cheats-for-jailed-idevices/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/176914-monster-legends-collect-all-cheats-v1779-8/
      • 352 replies
    • Eatventure v1.43.0 Jailed Cheats +2
      Modded/Hacked App: Eatventure By Lessmore UG haftungsbeschraenkt
      Bundle ID: com.hwqgrhhjfd.idlefastfood
      iTunes Store Link: https://apps.apple.com/us/app/eatventure/id1600871388?uo=4


      Hack Features:
      - Freeze Currencies
      - Free iAP (Turn on inside iOSGods Mod Menu first)


      Jailbreak required hack(s): https://iosgods.com/topic/168170-eatventure-cheats-all-versions-1/


      iOS Hack Download IPA Link: https://iosgods.com/topic/168169-eatventure-v110-jailed-cheats-2/
      • 358 replies
    • Battle Legion - Mass Battler Cheats v4.4.2 +4
      Modded/Hacked App: Battle Legion - Mass Battler By GODSPEED GAMING SOLUTIONS PRIVATE LIMITED
      Bundle ID: com.traplight.battleslides
      iTunes Store Link: https://apps.apple.com/us/app/battle-legion-mass-battler/id1435133042?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

      - Multiply Attack
      - Multiply Defense
      - Instant Win
      - Enemies Don't Move
      - Enemies Don't Attack

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/129669-battle-legion-mass-battler-cheats-v424-4/
      • 580 replies
    • Jetpack Joyride Cheats v1.100.2 +8
      Modded/Hacked App: Jetpack Joyride By Halfbrick
      Bundle ID: com.halfbrick.jetpack
      iTunes Store Link: https://apps.apple.com/us/app/jetpack-joyride/id457446957?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

      - Infinite Coins
      - High Score
      - God Mode
      - Free Shopping
      - Coin Magnet Enabled
      - Increased Magnet Range
      - All Items Owned
      - All Gadgets Unlocked

       

      Non-Jailbroken Hack: https://iosgods.com/topic/119791-jetpack-joyride-v1971-jailed-cheats-8/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/119788-jetpack-joyride-cheats-v1972-8/
      • 505 replies
    • My Talking Tom Friends Cheats v25.3 +2
      Modded/Hacked App: My Talking Tom Friends By Outfit7 Limited
      Bundle ID: com.outfit7.mytalkingtomfriends
      iTunes Store Link: https://apps.apple.com/us/app/my-talking-tom-friends/id1473424857?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

      - Infinite Coins
      - No Ads

      Non-Jailbroken Hack: https://iosgods.com/topic/128377-my-talking-tom-friends-v392-jailed-cheats-2/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/128376-my-talking-tom-friends-cheats-v2510-2/
      • 155 replies
    • BitLife - Life Simulator Cheats v3.19.9 +2
      Modded/Hacked App: BitLife - Life Simulator by Candywriter, LLC
      Bundle ID: com.wtfapps.apollo16
      iTunes Store Link: https://apps.apple.com/us/app/bitlife-life-simulator/id1374403536?uo=4&at=1010lce4


      Hack Features:
      - Infinite Cash
      - Free Bitizen Purchase (Press Cancle) - Work for All Versions


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/84167-arm64-bitlife-life-simulator-v1412-jailed-cheats-2/


      Hack Download Link: https://iosgods.com/topic/84223-arm64-bitlife-life-simulator-cheats-all-versions-2/
      • 3,685 replies
    • [ Chiikawa Pocket JP ] ちいかわぽけっと v1.4.0 Jailed Cheats +3
      Modded/Hacked App: ちいかわぽけっと By Applibot Inc.
      Bundle ID: jp.co.applibot.chiikawapocket
      iTunes Store Link: https://apps.apple.com/jp/app/%E3%81%A1%E3%81%84%E3%81%8B%E3%82%8F%E3%81%BD%E3%81%91%E3%81%A3%E3%81%A8/id6596745408?uo=4

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - God Mode
      - Multiply Attack
      - Custom Speed (Customize before Login or Clear stage to get apply)

       

      ⬇️ iOS Hack Download IPA Link: https://iosgods.com/topic/194281-chiikawa-pocket-jp-%E3%81%A1%E3%81%84%E3%81%8B%E3%82%8F%E3%81%BD%E3%81%91%E3%81%A3%E3%81%A8-v1111-jailed-cheats-3/
      • 28 replies
    • Chiikawa Pocket Cheats v1.4.0 +3
      Modded/Hacked App: Chiikawa Pocket By Applibot Inc.
      Bundle ID: jp.co.applibot.chiikawapocketgl
      iTunes Store Link: https://apps.apple.com/us/app/chiikawa-pocket/id6740838442?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

      - God Mode
      - Multiply Attack

       

      Non-Jailbroken Hack: https://iosgods.com/topic/193718-chiikawa-pocket-v111-jailed-cheats-2/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/193717-chiikawa-pocket-cheats-v111-2/
      • 50 replies
×
  • 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