README.md in google_spreadsheet_fetcher-1.9.1 vs README.md in google_spreadsheet_fetcher-2.0.0

- old
+ new

@@ -1,8 +1,8 @@ # GoogleSpreadsheetFetcher -Use OAuth 2 authentication to retrieve data from Google Spreadsheet. +Provides access to Google spreadsheets ## Installation Add this line to your application's Gemfile: @@ -18,22 +18,15 @@ $ gem install google_spreadsheet_fetcher ## Usage -- Make project. https://cloud.google.com/resource-manager/docs/creating-managing-projects -- Enable Google Drive API -- Make OAuth 2.0 Client. (other) -- Download client secret json - - ```ruby sheet_key = 'example_sheet_id' GoogleSpreadsheetFetcher.configure do |config| - config.client_secrets_file = 'client_secrets_file_path.json' - config.credential_store_file = 'credential_store_file_path.json' + ... end user_id = 'sample' fetcher = GoogleSpreadsheetFetcher::Fetcher.new(sheet_key, user_id) @@ -50,9 +43,17 @@ fetcher.all_rows_by!(index: 0) fetcher.all_rows_by!(title: 'sheet_title') fetcher.all_rows_by!(sheet_id: 1234567890) ``` + +### Use Service Account + +https://github.com/taka0125/google_spreadsheet_fetcher/wiki/Use-Service-Account + +### Use OAuth2 + +https://github.com/taka0125/google_spreadsheet_fetcher/wiki/Use-OAuth2 ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.