Skip to content

Add some methods from Spreadsheet API V4#235

Open
yuyaan wants to merge 9 commits into
gimite:masterfrom
yuyaan:v1.0
Open

Add some methods from Spreadsheet API V4#235
yuyaan wants to merge 9 commits into
gimite:masterfrom
yuyaan:v1.0

Conversation

@yuyaan

@yuyaan yuyaan commented Nov 1, 2016

Copy link
Copy Markdown

Create Sheet Api

@yuyaan yuyaan closed this Nov 2, 2016
@gimite

gimite commented Nov 2, 2016

Copy link
Copy Markdown
Owner

Just curious, why did you close it?

@yuyaan

yuyaan commented Nov 2, 2016

Copy link
Copy Markdown
Author

I was going to pull request to my repository(fork this repository).
I made mistake.

@gimite

gimite commented Nov 3, 2016

Copy link
Copy Markdown
Owner

I see. But the feature looks useful, so you can actually send a pull request.

The API is available vial google-api-client gem:
https://developers.google.com/sheets/quickstart/ruby
So I would prefer to use the gem (which we already use for Drive operations) rather than performing HTTP request directly, though.

@yuyaan

yuyaan commented Nov 3, 2016

Copy link
Copy Markdown
Author

OK!! thanks.
first, I tried using google-api-client.
but I couldn't be resolved session problem(I don't know how to share auth data(like accessToken)).
so I want to know how to share auth data between GoogleDrive-API and SheetsV4-API.

@yuyaan yuyaan reopened this Nov 3, 2016
@gimite

gimite commented Nov 3, 2016

Copy link
Copy Markdown
Owner

Here's code to construct DriveService instance with authorization object. I guess you can construct SheetsService here as well and pass the same authorization object:
https://github.com/gimite/google-drive-ruby/blob/master/lib/google_drive/api_client_fetcher.rb#L22

@yuyaan

yuyaan commented Nov 3, 2016

Copy link
Copy Markdown
Author

I could access!! thanks!
I'll try replace to google-api-client.

@gimite gimite changed the title V1.0 Add some methods from Spreadsheet API V4 Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants