<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/"><channel><title>Google API on keee.blog</title><link>https://keee.blog/tags/google-api/</link><description>Recent content in Google API on keee.blog</description><generator>Hugo -- gohugo.io</generator><language>ja</language><copyright>©2025, All Rights Reserved</copyright><lastBuildDate>Sun, 26 Mar 2023 00:11:13 +0900</lastBuildDate><atom:link href="https://keee.blog/tags/google-api/index.xml" rel="self" type="application/rss+xml"/><item><title>Google APIのトークンをgoogle authで取得する</title><link>https://keee.blog/posts/1fb3955f3071a18e89db209666748fd2/</link><pubDate>Sun, 26 Mar 2023 00:11:13 +0900</pubDate><atom:modified>Sun, 26 Mar 2023 00:11:13 +0900</atom:modified><guid>https://keee.blog/posts/1fb3955f3071a18e89db209666748fd2/</guid><description>&lt;h2 id="概要">概要&lt;/h2>
&lt;p>スプレッドシートAPIを例に、&lt;code>gem googleauth&lt;/code>を使用してリフレッシュトークンの取得を行う。&lt;br />
自分でURLを組み立てて認証する方法がよく見つかるが、業務等で何度も行う場合には面倒なので手元にコードを置いておけば楽かと思い試してみた。&lt;br />
大体以下のような流れとなる。&lt;/p></description><dc:creator>keee</dc:creator><category>Google API</category><category>Spreadsheet Api</category></item></channel></rss>