youtube-api
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -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 @@ |
{ | ||
"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": { |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21588
142
181