際際滷

際際滷Share a Scribd company logo
Using Google API in Go
Apr 20, 2013
Jongmin Kim
GDG Korea Golang
谿襦
 OAuth
 API console, API explorer 煙 蟲
 Keys, access, security, and identity
 Google API襯 蠍  れ
 Web applications 語 磯
 Service accounts 語 磯
 Google APIs Directory Service
 Google Auth Proxy by Bitly
OAuth 1.0a
Atoiain Ouhram"tp/aigol.o/,
 uhrzto: At el=ht:/p.ogecm"
     ouhcnue_e=08b98jh2"
      at_osmrky"65d14fq2,
     ouhtkn"d8jd3kr7,
      at_oe=a10j73lu"
     ouhsgauemto=HA-H1,
      at_intr_ehd"MCSA"
     ouhsgaue"OI925FDivbSK2P%D,
      at_intr=wJOAWmwgDZTM%FY3"
     ouhtmsap"3110"
      at_ietm=17320,
     ouhnne"521e81dd52c1816,
      at_oc=476646666746667"
     ouhvrin"."
      at_eso=10


  HMAC 伎 誤 語 覦襷 螻
  襷る signature襯 燕伎 
  curl 煙朱 ろ誤企慨蠍 企れ
  蠍磯蓋朱 3-legged 覈
OAuth 2.0
  3-legged 訖襷  2-legged 覈碁 讌
  讌 draft 覯 31. Google 22 蟲. Facebook 12 蟲
  Client(1.0a Consumer) Public Client Confidential Client襦 蟆 
  覈豺 豌 覦
10
 .a                          20
                              .
Ue
 sr                      Rsuc Onr
                           eore we
Cnue
 osmr               Cin
                      let
SriePoie
 evc rvdr         AtoiainSre +Rsuc Sre
                    uhrzto evr  eore evr


  Authorization Server Resource Server 覿襴 螳
OAuth Service Providers




 KTH 螳覦 觚襦蠏(http://dev.kthcorp.com/2012/12/12/oauth-2-0-open-api-auth/)
Useful Tools
 API console (https://code.google.com/apis/console/?pli=1#project:474377512137)

 OAuth 2.0 Playground (https://developers.google.com/oauthplayground/)

 APIs Explorer (https://developers.google.com/apis-explorer/#s/)

 Ajax Code Playground (https://code.google.com/apis/ajax/playground/)

 Authorized Access to your Google Account (https://accounts.google.com/b/0/IssuedAuthSubTokens)
Keys, access, security, and identity
The APIs represented in the Google APIs Console require that requests include a
unique project identifier. This enables the Console to tie a request to a specific project
in order to monitor traffic, enforce quotas, and handle billing. Google supports two
separate mechanisms to create a unique project identifier: OAuth 2.0 client IDs and API
keys.

   OAuth 2.0 client ID
   API key
OAuth 2.0 client ID
client ID襯 襷   譬襯 Google 讌 OAuth 2.0 襴

  Web application: Login, Web Server Applications, Client-side Applications
  Service account: Service Accounts
  Installed application: Installed Applications, Devices
API key
  覈 API 語 , 朱誤磯 key={API_key}襯 覿譴.
   襯 覦讌 蠍 覓語 螻 覲伎 蠏狩讌 覈 .
  瑚(authorization)   蟆 .
 れ
OAuth 2.0 れ

 $g gtcd.ogecmpgat2
   o e oegol.o//ouh


Google APIs Client Library for Go

 $g gtcd.ogecmpgol-p-ocin
   o e oegol.o//ogeaig-let


るジ 語伎 殊企襴れ 蠍(https://developers.google.com/discovery/libraries) 谿瑚
Thank you
Jongmin Kim
GDG Korea Golang
(http://j.mp/Jongmin)

More Related Content

Viewers also liked (15)

10 reasons to be excited about go
10 reasons to be excited about go10 reasons to be excited about go
10 reasons to be excited about go
Dvir Volk
Golang
GolangGolang
Golang
Felipe Mamud
Google Go! language
Google Go! languageGoogle Go! language
Google Go! language
Andr辿 Mayer
蟲 覦 譯殊 Agile practices 襦 v1.0
蟲 覦 譯殊 Agile practices 襦 v1.0蟲 覦 譯殊 Agile practices 襦 v1.0
蟲 覦 譯殊 Agile practices 襦 v1.0
Sangcheol Hwang
Introduction to go language programming
Introduction to go language programmingIntroduction to go language programming
Introduction to go language programming
Mahmoud Masih Tehrani
Golang
GolangGolang
Golang
Michael Blake
Agile 覦覯襦
Agile 覦覯襦Agile 覦覯襦
Agile 覦覯襦
Astin Choi
Agile - SCRUM 牛 螳覦蟯襴
Agile - SCRUM 牛 螳覦蟯襴Agile - SCRUM 牛 螳覦蟯襴
Agile - SCRUM 牛 螳覦蟯襴
SangJin Kang
螻 襦 螻旧
 螻 襦 螻旧 螻 襦 螻旧
螻 襦 螻旧
agilekorea
ろ, 願姥
ろ, 願姥  ろ, 願姥
ろ, 願姥
Insub Lee
殊 覈蟆
殊 覈蟆殊 覈蟆
殊 覈蟆
KH Park (覦蟆渚)
Go Programming Language - Learning The Go Lang way
Go Programming Language - Learning The Go Lang wayGo Programming Language - Learning The Go Lang way
Go Programming Language - Learning The Go Lang way
IndicThreads
About Go
About GoAbout Go
About Go
Jongmin Kim
Google's Go Programming Language - Introduction
Google's Go Programming Language - Introduction Google's Go Programming Language - Introduction
Google's Go Programming Language - Introduction
Ganesh Samarthyam
Introduction to Go programming
Introduction to Go programmingIntroduction to Go programming
Introduction to Go programming
Exotel
10 reasons to be excited about go
10 reasons to be excited about go10 reasons to be excited about go
10 reasons to be excited about go
Dvir Volk
Google Go! language
Google Go! languageGoogle Go! language
Google Go! language
Andr辿 Mayer
蟲 覦 譯殊 Agile practices 襦 v1.0
蟲 覦 譯殊 Agile practices 襦 v1.0蟲 覦 譯殊 Agile practices 襦 v1.0
蟲 覦 譯殊 Agile practices 襦 v1.0
Sangcheol Hwang
Introduction to go language programming
Introduction to go language programmingIntroduction to go language programming
Introduction to go language programming
Mahmoud Masih Tehrani
Agile 覦覯襦
Agile 覦覯襦Agile 覦覯襦
Agile 覦覯襦
Astin Choi
Agile - SCRUM 牛 螳覦蟯襴
Agile - SCRUM 牛 螳覦蟯襴Agile - SCRUM 牛 螳覦蟯襴
Agile - SCRUM 牛 螳覦蟯襴
SangJin Kang
螻 襦 螻旧
 螻 襦 螻旧 螻 襦 螻旧
螻 襦 螻旧
agilekorea
ろ, 願姥
ろ, 願姥  ろ, 願姥
ろ, 願姥
Insub Lee
Go Programming Language - Learning The Go Lang way
Go Programming Language - Learning The Go Lang wayGo Programming Language - Learning The Go Lang way
Go Programming Language - Learning The Go Lang way
IndicThreads
Google's Go Programming Language - Introduction
Google's Go Programming Language - Introduction Google's Go Programming Language - Introduction
Google's Go Programming Language - Introduction
Ganesh Samarthyam
Introduction to Go programming
Introduction to Go programmingIntroduction to Go programming
Introduction to Go programming
Exotel

Similar to Using google api in go (20)

襦企 OAuth 1.0a, 2.0 蟲 - Naver, Google API
襦企 OAuth 1.0a, 2.0 蟲 - Naver, Google API 襦企 OAuth 1.0a, 2.0 蟲 - Naver, Google API
襦企 OAuth 1.0a, 2.0 蟲 - Naver, Google API
Gosu Ok
GDG Incheon Devfest 2016 - Google API襦 襷 覿 覦煙ろ殊
GDG Incheon Devfest 2016 - Google API襦 襷   覿 覦煙ろ殊 GDG Incheon Devfest 2016 - Google API襦 襷   覿 覦煙ろ殊
GDG Incheon Devfest 2016 - Google API襦 襷 覿 覦煙ろ殊
MooYeol Lee
AManaging Kong API Gateway with Terraform
AManaging Kong API Gateway with TerraformAManaging Kong API Gateway with Terraform
AManaging Kong API Gateway with Terraform
Byungjin Park
Clova Tech Summit 語3 :Clova extension OAuth 螻 磯 蟲
Clova Tech Summit 語3 :Clova extension OAuth 螻 磯 蟲Clova Tech Summit 語3 :Clova extension OAuth 螻 磯 蟲
Clova Tech Summit 語3 :Clova extension OAuth 螻 磯 蟲
Clova Platform
[H3 2012] OAuth2 - API 語 襷 蟲
[H3 2012] OAuth2 - API 語 襷 蟲[H3 2012] OAuth2 - API 語 襷 蟲
[H3 2012] OAuth2 - API 語 襷 蟲
KTH, 貅危壱危
OAuth2 - API 語 襷ル蟲
OAuth2 - API 語  襷ル蟲OAuth2 - API 語  襷ル蟲
OAuth2 - API 語 襷ル蟲
Minwoo Park
20150109 - AWS BlackBelt - IAM (Korean)
20150109 - AWS BlackBelt - IAM (Korean)20150109 - AWS BlackBelt - IAM (Korean)
20150109 - AWS BlackBelt - IAM (Korean)
Amazon Web Services Korea
F3 れ企ろapi襷襷れ
F3 れ企ろapi襷襷れF3 れ企ろapi襷襷れ
F3 れ企ろapi襷襷れ
NAVER D2
Clova extension OAuth 螻 磯 蟲
Clova extension OAuth 螻 磯 蟲Clova extension OAuth 螻 磯 蟲
Clova extension OAuth 螻 磯 蟲
Gosu Ok
Amazon Elastcsearch Service 螳 覦 覦覯 (れ谿)
Amazon Elastcsearch Service 螳 覦  覦覯 (れ谿) Amazon Elastcsearch Service 螳 覦  覦覯 (れ谿)
Amazon Elastcsearch Service 螳 覦 覦覯 (れ谿)
Amazon Web Services Korea
REST API Development with Spring
REST API Development with SpringREST API Development with Spring
REST API Development with Spring
Keesun Baik
Citizen 螳覦蠍
Citizen 螳覦蠍Citizen 螳覦蠍
Citizen 螳覦蠍
JeongHun Byeon
20180124 naver labs aws network and security
20180124 naver labs aws network and security20180124 naver labs aws network and security
20180124 naver labs aws network and security
Jongwon Han
Data discovery & metadata management (amundsen installation)
Data discovery & metadata management (amundsen installation)Data discovery & metadata management (amundsen installation)
Data discovery & metadata management (amundsen installation)
谿曙
RESTful API り
RESTful API りRESTful API り
RESTful API り
Jinho Yoo
覈 襦, Azure CLI 2.0 螻殊 貊手?
覈 襦, Azure CLI 2.0 螻殊 貊手?覈 襦, Azure CLI 2.0 螻殊 貊手?
覈 襦, Azure CLI 2.0 螻殊 貊手?
Ian Choi
4 DGMIT R&D 貉朱一 : REST API - 襴 讌レ ろ豌
 4 DGMIT R&D 貉朱一 : REST API - 襴 讌レ ろ豌 4 DGMIT R&D 貉朱一 : REST API - 襴 讌レ ろ豌
4 DGMIT R&D 貉朱一 : REST API - 襴 讌レ ろ豌
dgmit2009
Open source APM Scouter襦 覈磯 蠍
Open source APM Scouter襦 覈磯  蠍Open source APM Scouter襦 覈磯  蠍
Open source APM Scouter襦 覈磯 蠍
GunHee Lee
Open api螳覦 襭1
Open api螳覦  襭1Open api螳覦  襭1
Open api螳覦 襭1
AWS 蠍磯 觚襦豌伎 (1覿) - 觚襦豌伎 蟆 蟲燕蠍 (覦 & る, AWS 襭讀 ろ) :: AWS DevDay2018
AWS 蠍磯 觚襦豌伎 (1覿) - 觚襦豌伎 蟆 蟲燕蠍 (覦 & る, AWS 襭讀 ろ) :: AWS DevDay2018AWS 蠍磯 觚襦豌伎 (1覿) - 觚襦豌伎 蟆 蟲燕蠍 (覦 & る, AWS 襭讀 ろ) :: AWS DevDay2018
AWS 蠍磯 觚襦豌伎 (1覿) - 觚襦豌伎 蟆 蟲燕蠍 (覦 & る, AWS 襭讀 ろ) :: AWS DevDay2018
Amazon Web Services Korea
襦企 OAuth 1.0a, 2.0 蟲 - Naver, Google API
襦企 OAuth 1.0a, 2.0 蟲 - Naver, Google API 襦企 OAuth 1.0a, 2.0 蟲 - Naver, Google API
襦企 OAuth 1.0a, 2.0 蟲 - Naver, Google API
Gosu Ok
GDG Incheon Devfest 2016 - Google API襦 襷 覿 覦煙ろ殊
GDG Incheon Devfest 2016 - Google API襦 襷   覿 覦煙ろ殊 GDG Incheon Devfest 2016 - Google API襦 襷   覿 覦煙ろ殊
GDG Incheon Devfest 2016 - Google API襦 襷 覿 覦煙ろ殊
MooYeol Lee
AManaging Kong API Gateway with Terraform
AManaging Kong API Gateway with TerraformAManaging Kong API Gateway with Terraform
AManaging Kong API Gateway with Terraform
Byungjin Park
Clova Tech Summit 語3 :Clova extension OAuth 螻 磯 蟲
Clova Tech Summit 語3 :Clova extension OAuth 螻 磯 蟲Clova Tech Summit 語3 :Clova extension OAuth 螻 磯 蟲
Clova Tech Summit 語3 :Clova extension OAuth 螻 磯 蟲
Clova Platform
[H3 2012] OAuth2 - API 語 襷 蟲
[H3 2012] OAuth2 - API 語 襷 蟲[H3 2012] OAuth2 - API 語 襷 蟲
[H3 2012] OAuth2 - API 語 襷 蟲
KTH, 貅危壱危
OAuth2 - API 語 襷ル蟲
OAuth2 - API 語  襷ル蟲OAuth2 - API 語  襷ル蟲
OAuth2 - API 語 襷ル蟲
Minwoo Park
F3 れ企ろapi襷襷れ
F3 れ企ろapi襷襷れF3 れ企ろapi襷襷れ
F3 れ企ろapi襷襷れ
NAVER D2
Clova extension OAuth 螻 磯 蟲
Clova extension OAuth 螻 磯 蟲Clova extension OAuth 螻 磯 蟲
Clova extension OAuth 螻 磯 蟲
Gosu Ok
Amazon Elastcsearch Service 螳 覦 覦覯 (れ谿)
Amazon Elastcsearch Service 螳 覦  覦覯 (れ谿) Amazon Elastcsearch Service 螳 覦  覦覯 (れ谿)
Amazon Elastcsearch Service 螳 覦 覦覯 (れ谿)
Amazon Web Services Korea
REST API Development with Spring
REST API Development with SpringREST API Development with Spring
REST API Development with Spring
Keesun Baik
20180124 naver labs aws network and security
20180124 naver labs aws network and security20180124 naver labs aws network and security
20180124 naver labs aws network and security
Jongwon Han
Data discovery & metadata management (amundsen installation)
Data discovery & metadata management (amundsen installation)Data discovery & metadata management (amundsen installation)
Data discovery & metadata management (amundsen installation)
谿曙
RESTful API り
RESTful API りRESTful API り
RESTful API り
Jinho Yoo
覈 襦, Azure CLI 2.0 螻殊 貊手?
覈 襦, Azure CLI 2.0 螻殊 貊手?覈 襦, Azure CLI 2.0 螻殊 貊手?
覈 襦, Azure CLI 2.0 螻殊 貊手?
Ian Choi
4 DGMIT R&D 貉朱一 : REST API - 襴 讌レ ろ豌
 4 DGMIT R&D 貉朱一 : REST API - 襴 讌レ ろ豌 4 DGMIT R&D 貉朱一 : REST API - 襴 讌レ ろ豌
4 DGMIT R&D 貉朱一 : REST API - 襴 讌レ ろ豌
dgmit2009
Open source APM Scouter襦 覈磯 蠍
Open source APM Scouter襦 覈磯  蠍Open source APM Scouter襦 覈磯  蠍
Open source APM Scouter襦 覈磯 蠍
GunHee Lee
Open api螳覦 襭1
Open api螳覦  襭1Open api螳覦  襭1
Open api螳覦 襭1
AWS 蠍磯 觚襦豌伎 (1覿) - 觚襦豌伎 蟆 蟲燕蠍 (覦 & る, AWS 襭讀 ろ) :: AWS DevDay2018
AWS 蠍磯 觚襦豌伎 (1覿) - 觚襦豌伎 蟆 蟲燕蠍 (覦 & る, AWS 襭讀 ろ) :: AWS DevDay2018AWS 蠍磯 觚襦豌伎 (1覿) - 觚襦豌伎 蟆 蟲燕蠍 (覦 & る, AWS 襭讀 ろ) :: AWS DevDay2018
AWS 蠍磯 觚襦豌伎 (1覿) - 觚襦豌伎 蟆 蟲燕蠍 (覦 & る, AWS 襭讀 ろ) :: AWS DevDay2018
Amazon Web Services Korea

Using google api in go

  • 1. Using Google API in Go Apr 20, 2013 Jongmin Kim GDG Korea Golang
  • 2. 谿襦 OAuth API console, API explorer 煙 蟲 Keys, access, security, and identity Google API襯 蠍 れ Web applications 語 磯 Service accounts 語 磯 Google APIs Directory Service Google Auth Proxy by Bitly
  • 3. OAuth 1.0a Atoiain Ouhram"tp/aigol.o/, uhrzto: At el=ht:/p.ogecm" ouhcnue_e=08b98jh2" at_osmrky"65d14fq2, ouhtkn"d8jd3kr7, at_oe=a10j73lu" ouhsgauemto=HA-H1, at_intr_ehd"MCSA" ouhsgaue"OI925FDivbSK2P%D, at_intr=wJOAWmwgDZTM%FY3" ouhtmsap"3110" at_ietm=17320, ouhnne"521e81dd52c1816, at_oc=476646666746667" ouhvrin"." at_eso=10 HMAC 伎 誤 語 覦襷 螻 襷る signature襯 燕伎 curl 煙朱 ろ誤企慨蠍 企れ 蠍磯蓋朱 3-legged 覈
  • 4. OAuth 2.0 3-legged 訖襷 2-legged 覈碁 讌 讌 draft 覯 31. Google 22 蟲. Facebook 12 蟲 Client(1.0a Consumer) Public Client Confidential Client襦 蟆 覈豺 豌 覦 10 .a 20 . Ue sr Rsuc Onr eore we Cnue osmr Cin let SriePoie evc rvdr AtoiainSre +Rsuc Sre uhrzto evr eore evr Authorization Server Resource Server 覿襴 螳
  • 5. OAuth Service Providers KTH 螳覦 觚襦蠏(http://dev.kthcorp.com/2012/12/12/oauth-2-0-open-api-auth/)
  • 6. Useful Tools API console (https://code.google.com/apis/console/?pli=1#project:474377512137) OAuth 2.0 Playground (https://developers.google.com/oauthplayground/) APIs Explorer (https://developers.google.com/apis-explorer/#s/) Ajax Code Playground (https://code.google.com/apis/ajax/playground/) Authorized Access to your Google Account (https://accounts.google.com/b/0/IssuedAuthSubTokens)
  • 7. Keys, access, security, and identity The APIs represented in the Google APIs Console require that requests include a unique project identifier. This enables the Console to tie a request to a specific project in order to monitor traffic, enforce quotas, and handle billing. Google supports two separate mechanisms to create a unique project identifier: OAuth 2.0 client IDs and API keys. OAuth 2.0 client ID API key
  • 8. OAuth 2.0 client ID client ID襯 襷 譬襯 Google 讌 OAuth 2.0 襴 Web application: Login, Web Server Applications, Client-side Applications Service account: Service Accounts Installed application: Installed Applications, Devices
  • 9. API key 覈 API 語 , 朱誤磯 key={API_key}襯 覿譴. 襯 覦讌 蠍 覓語 螻 覲伎 蠏狩讌 覈 . 瑚(authorization) 蟆 .
  • 10. れ OAuth 2.0 れ $g gtcd.ogecmpgat2 o e oegol.o//ouh Google APIs Client Library for Go $g gtcd.ogecmpgol-p-ocin o e oegol.o//ogeaig-let るジ 語伎 殊企襴れ 蠍(https://developers.google.com/discovery/libraries) 谿瑚
  • 11. Thank you Jongmin Kim GDG Korea Golang (http://j.mp/Jongmin)