Socket
Socket
Sign inDemoInstall

youtube-api

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

youtube-api - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

9

lib/index.js

@@ -36,11 +36,2 @@ // Dependencies

break;
case "jwt":
authObj = new Google.auth.JWT(
options.email
, options.keyFile
, options.key
, options.scopes
, options.subject
);
break;
}

@@ -47,0 +38,0 @@

5

package.json
{
"name": "youtube-api",
"version": "1.0.1",
"version": "1.1.0",
"description": "A Node.JS module, which provides an object oriented wrapper for the Youtube v3 API.",

@@ -12,3 +12,4 @@ "main": "lib/index.js",

"Vels <velshome@yahoo.com> (velsa)",
"Rasmus Karlsson <pajlada@bithack.se>"
"Rasmus Karlsson <pajlada@bithack.se>",
"Brad Oyler <bradoyler@gmail.com>"
],

@@ -15,0 +16,0 @@ "repository": {

21

README.md

@@ -160,2 +160,3 @@ <!---------------------------------------------------------------------------->

#### Server Key
*Only for requests that don't require [user authorization](https://developers.google.com/youtube/v3/guides/authentication) (certain list operations)*
```js

@@ -168,20 +169,2 @@ Youtube.authenticate({

#### JWT
Just perfect for server side only authentication. It does not require
client side interaction.
```js
Youtube.authenticate({
type: "jwt"
, email: "77....3vv@developer.gserviceaccount.com"
, keyFile: "... auth.pem"
, key: "fb....d50"
, subject: "you@gmail.com" // optional
, scopes: ["https://www.googleapis.com/auth/youtube"]
}).authorize(function (err, data) {
if (err) { throw err; }
/* Access resources */
});
```
## How to contribute

@@ -199,2 +182,2 @@ Have an idea? Found a bug? See [how to contribute][contributing].

[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MG98D7NPFZ3MG
[donate-now]: http://i.imgur.com/jioicaN.png
[donate-now]: http://i.imgur.com/jioicaN.png

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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