Quantcast
Channel: Node.jsタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 9356

node.js で Google Drive にアクセスする際にハマった

$
0
0
症状 公式のクイックスタートに沿って進める。 しかしエラーが出てうまく行かない。 Error: TypeError: Cannot destructure property 'client_secret' of 'credentials.installed' as it is undefined. 原因 サンプルコードにあるcredentials.jsonをクイックスタートの手順で取得する際に、以下ページに誘導される。 ここで、以下3種類のキーの取得方法が紹介されている。 API key OAuth client ID Service account クイックスタートはこのうち、 OAuth client ID の取得を前提としたサンプルコードになっているようだった。 また、キーを取得する際にアプリケーションの種類を聞かれるが、「デスクトップアプリ」を選択する必要があるようだった。

Viewing all articles
Browse latest Browse all 9356

Trending Articles