Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yt_data_api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yt_data_api

  • 0.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

#Yt_Data_Api

yt_data_api adds functionality to access elements of the YouTube Data API. This was created as a learning tool. Check out youtube_it for more functionality, https://github.com/kylejginavan/youtube_it.

#Usage

First, create a new client object passing YouTube user credentials. Note you will have to acquire a developer key from YouTube, http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html#Developer_Key.

client = YtDataApi::YtDataApiClient.new(YOUTUBE_USER_ID, YOUTUBE_USER_PSWD, YOUTUBE_DEV_KEY)

Then, call functions on the client object to access the YouTube Data API.

##Create a playlist and get it's id client.create_playlist("test") playlist_id = client.get_client_playlist_id("test")

##Delete a playlist client.delete_playlist(playlist_id)

##Get a video id given a query Note spaces were replaced with '+' video_id = client.get_video_id("Otis+Kanye+West")

##Add video to client playlist client.add_video_to_playlist(video_id, playlist_id)

#TODO

  • Add more functionality

FAQs

Package last updated on 15 Nov 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc