LoginSignup
7
7

More than 5 years have passed since last update.

GoogleSpreadsheetに追記していく

Last updated at Posted at 2014-02-27

何かのデータを取ってきてGoogleSpreadsheetに追記していきたいときに。

#!/usr/bin/env ruby
# encoding: UTF-8
require 'google_drive'

session = GoogleDrive.login("loginID", "Password")
ss = session.spreadsheet_by_url("SpreadSheetURL")
ws = ss.worksheet_by_title("SheetTitle")
TARGET_COL = 1 #Column you want to increase

ws[ws.num_rows()+1, TARGET_COL] = "hoge" #Value you want to insert
ws.save

で、 ここからgraphを生成してiframeで好きなところに埋め込む といろいろ捗る

7
7
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
7
7