Giter Site home page Giter Site logo

learn-youtube-api's Introduction

verify-youtube-api

get started

必要なパッケージの取得。

$ npm install

続いて、必要な認証情報を取得する。具体的には client_secret.json という認証情報を記載した JSON ファイル。

これは、Google API コンソールでの操作が必要になる。

JSON を取得できたら、ファイル名を client_secret.json として quickstart.js と同じ階層に置く。

そこまで準備できたら、Node.js で quickstart.js を実行する。

$ node quickstart.js

途中、コマンドライン上で認証のためにこの URL を開いてキーを取得しろ的な感じのが出るので、ブラウザでアクセス+認証許可を行い、キーをコマンドラインに貼り付けて Enter する。

認証が通ると、ユーザーのホームに ~/.credentials というディレクトリが掘られて、そこにトークンの情報が自動的に出力される。また、認証を通したユーザーの情報を API を通じて取得し、その結果をコンソール上に出力している。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.