LoginSignup
0
0

More than 3 years have passed since last update.

Steinを使ってSpreadSheetのデータをとるときのメモ

Last updated at Posted at 2020-11-18

準備

1.Steinにアカウント登録(Googleアカウント) このとき、SpreadSheetへのアクセス許可がなされる。
2.SteinのSpreadSheetのURLを貼り付けるところがあるので、扱いたいSheetのURLをコピペ どのファイルなのかを指定する目的
3.Stein上に表示されるAPIのURLをコピー Steinを通してSpreadSheetにアクセスされる。
 image.png
4.Node.js(今回使う言語)上にコピペ

// Read Sheet1
const SteinStore = require("stein-js-client");
const store = new SteinStore(
  "https://api.steinhq.com/v1/storages/xxxxxxxxxxxxxxx"
);

store.read("Sheet1", { limit: 1, offset: 2 }).then(data => {
  console.log(data);
});

参考URL

Steinのサイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0