<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>i178inaba</author_name>
  <author_url>https://blog.hatena.ne.jp/i178inaba/</author_url>
  <blog_title>Technology Engineering</blog_title>
  <blog_url>https://inaba.hatenablog.com/</blog_url>
  <categories>
    <anon>Google API</anon>
    <anon>Go</anon>
    <anon>Spreadsheet</anon>
  </categories>
  <description>slack botでスプレッドシートからデータ取得する場面があったので調査して検証がてらgolangで実装してみた。 気をつける所とかメモ的に書いておく。 作ったのはスプレッドシートで重み付け抽選を行うアプリ。 github.com 認証 認証方法はAPIキー、OAuth、サービスアカウントの3つがある。 いずれもGCPの『APIとサービス』から取得できる。 APIキー 公開されたスプレッドシートしか読み込めないようだったので今回はパス。 OAuthクライアントID 一度ユーザがブラウザを開いて認証する必要がある。 bot用には使えないなーと思ったのでパス。 サービスアカウント 新しくGoog…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finaba.hatenablog.com%2Fentry%2F2019%2F03%2F25%2F014917&quot; title=&quot;スプレッドシートのデータを取得する - Technology Engineering&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/i/i178inaba/20190313/20190313020229.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-03-25 01:49:17</published>
  <title>スプレッドシートのデータを取得する</title>
  <type>rich</type>
  <url>https://inaba.hatenablog.com/entry/2019/03/25/014917</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
