Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Fukuoka.rb #150 LT
Search
jinroq
September 18, 2019
Programming
0
260
Fukuoka.rb #150 LT
jinroq
September 18, 2019
Tweet
Share
More Decks by jinroq
See All by jinroq
Fukuoka.rb 2023 年度活動報告
jinroq
0
390
TRICK 2022 に入選した話
jinroq
0
210
RubyKaigiとMicrosoftと私
jinroq
0
170
msgraph: Microsoft Graph API Client with Ruby
jinroq
0
260
Fukuoka.rb 2019活動報告・2020抱負
jinroq
0
250
福岡の方から参りました Fukuoka.rb です
jinroq
0
1.7k
Microsoft Graph API Client and OpenAPI
jinroq
0
950
5 分で分かるアイキューブドシステムズ
jinroq
0
530
Fukuoka.rb 2019年度上半期活動報告
jinroq
0
2.7k
Other Decks in Programming
See All in Programming
Better Code Design in PHP
afilina
PRO
0
130
[Do iOS '24] Ship your app on a Friday...and enjoy your weekend!
polpielladev
0
100
Amazon Qを使ってIaCを触ろう!
maruto
0
410
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
9
3.3k
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
130
TypeScriptでライブラリとの依存を限定的にする方法
tutinoko
2
670
CSC509 Lecture 11
javiergs
PRO
0
180
シールドクラスをはじめよう / Getting Started with Sealed Classes
mackey0225
4
640
「今のプロジェクトいろいろ大変なんですよ、app/services とかもあって……」/After Kaigi on Rails 2024 LT Night
junk0612
5
2.1k
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
170
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.5k
Featured
See All Featured
Statistics for Hackers
jakevdp
796
220k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
329
21k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
The Invisible Side of Design
smashingmag
298
50k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Code Review Best Practice
trishagee
64
17k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
It's Worth the Effort
3n
183
27k
Thoughts on Productivity
jonyablonski
67
4.3k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
120
Being A Developer After 40
akosma
86
590k
Transcript
αʔυύʔςΟʔ SDK ։ൃ Fukuoka.rb #149/150 ߹ซ߸ LT ODA Hirohito
࠷ۙ Fukuoka.rb Ͱ͍ͬͯΔ͜ͱ
msgraph https://github.com/jinroq/msgraph
Microsoft Graph https://developer.microsoft.com/en-us/graph
Office 365 ͱ͔Λศརʹѻ͑Δ https://docs.microsoft.com/en-us/graph/?view=graph-rest-1.0
αϙʔτϓϥοτϑΥʔϜ https://docs.microsoft.com/en-us/graph/?view=graph-rest-1.0#supported-platforms
Ruby αϙʔτର https://docs.microsoft.com/en-us/graph/?view=graph-rest-1.0#supported-platforms
Microsoft Graph Client Library for Ruby https://github.com/microsoftgraph/msgraph-sdk-ruby
͕
ίϛοτ͕গͳ͗͢ͳ͍ʁ Microsoft Graph ͕ϦϦʔε͞Εͨͷ 2015
͜Μͳ issue ͕͋Δ https://github.com/microsoftgraph/msgraph-sdk-ruby/issues/42
• ϝϯςφʔ͕ϝϯςφϯεΛͯ͘͠Ε͍ͯͳ͍ • υΩϡϝϯτ͕ͳ͍ͷͰ͍ํ͕ͬ͞ͺΓ͔Βͳ͍ • ެࣜʹαϙʔτ͍ͯ͠Δͱᨳ͍ͬͯΔ͕ SDK preview
൛
ࠓޙ։ൃ͕ܧଓ͞ΕΔ͔ෆ໌ྎ
Ͳ͏͠Α͏ʁ
– ੲͷۈઌͷઌഐͷ֨ݴ ແ͍ͳΒΕ
ͦΜͳ༁ͰແʹҰਓͰ SDK ΛͬͯΈΔ͜ͱʹͨ͠
·ͣૉʹΤϯυϙΠϯτʹ ରͯ͠ΫϥΠΞϯτΛͭͬͯ͘ΈΔ
͕
ૉʹ࣮ͯ͠ΈΔ • ຊՈ SDK OData Protocol ͷ༷͕େʢಡΈͨ͘ͳ͍ʣ • ΤϯυϙΠϯτ
100 Ҏ্ʢ్தͰ͑ΔࣄΛఘΊͨʣ͋Δ
ૉʹ࣮ͯ͠ΈΔ • ຊՈ SDK OData Protocol ͷ༷͕େ • ΤϯυϙΠϯτ
100 Ҏ্ʢ͑Δͷ్தͰఘΊͨʣ͋Δ ૉʹ։ൃ͍ͯͨ͠Β ҰਓͰ౸ఈऴΘΒͳ͍
͡Ό͋Ͳ͏͢Δʁ
Ͳ͏͢Δʁ • ݱঢ়Λཧ͢Δ • Microsoft Graph API RESTful API
ͱͯ͠ఏڙ͞Ε͍ͯΔ • OData Protocol Λ࠾༻͍ͯ͠ΔΑ͏͕ͩɺΫΤϦύϥϝʔλ−ʹ OData ΫΤϦΛͤΕղܾͦ͠͏
Ͳ͏͢Δʁ • ݱঢ়Λཧ͢Δ • Microsoft Graph API RESTful API
ͱͯ͠ఏڙ͞Ε͍ͯΔ • OData Protocol Λ࠾༻͍ͯ͠ΔΑ͏͕ͩɺΫΤϦύϥϝʔλ−ʹ OData ΫΤϦΛͤΕղܾͦ͠͏ OpenAPI Generator ͕͑ͦ͏
OpenAPI Generator • https://github.com/OpenAPITools/openapi-generator • OpenAPI Schema Λఆٛ͢ΕΫϥΠΞϯτΛੜͯ͘͠ΕΔπʔϧ • ࢀߟɿ
https://rubykaigi.org/2019/presentations/ota42y.html#apr18 • Ruby Ҏ֎ʹ༷ʑͳݴޠͷΫϥΠΞϯτΛ࡞Ͱ͖Δ
microsoft-graph-openapi https://github.com/microsoftgraph/microsoft-graph-openapi
microsoft-graph-openapi https://github.com/microsoftgraph/microsoft-graph-openapi ͏ग़དྷͨಉવʂ
microsoft-graph-openapi https://github.com/microsoftgraph/microsoft-graph-openapi ͏ग़དྷͨಉવʂ
microsoft-graph-openapi https://github.com/microsoftgraph/microsoft-graph-openapi ͏ग़དྷͨಉવʂ
·ͱΊ • OpenAPI Generator Λ͑ΔΑ͏ʹ͢Εग़དྷΔ͔ • ͋͘·Ͱ͕ࣗϝϯςφϯεͰ͖ΔఔʹͱͲΊΔ • ࡞Γͬͺͳ͠ͰऴΘΓʹ͠ͳ͍