Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
APIって結局何?世界を広げよう - マサカリ解説シリーズ
Search
Yuichiro Smith
August 08, 2024
Programming
160
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
APIって結局何?世界を広げよう - マサカリ解説シリーズ
Yuichiro Smith
August 08, 2024
More Decks by Yuichiro Smith
See All by Yuichiro Smith
老人会? いえ、技術継承です @ builderscon 2024 LT
s3i7h
0
180
Other Decks in Programming
See All in Programming
速習iPhone Duo対応
yuukiw00w
1
710
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
350
JRuby: Past, Present, and Future
headius
0
190
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1k
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
170
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
500
難しいけど、読めた。- OSSの入口に立った話。
sts11142
0
120
海上で動くGoサーバー: goroutineとchannelでさばく航行データストリーム
atsuki_seo
0
910
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
0
160
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
330
App Intentsのビルドプロセスを支える技術
kntkymt
0
420
Building an Out-of-Order CPU
latte72
1
800
Featured
See All Featured
Speed Design
sergeychernyshev
33
2.1k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
57k
For a Future-Friendly Web
brad_frost
183
10k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
540
Balancing Empowerment & Direction
lara
6
1.3k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
410
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
830
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
700
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
610
Embracing the Ebb and Flow
colly
88
5.2k
Transcript
APIって結局何?世界を広げよう マサカリ解説シリーズ(続け)
自己紹介 s3i7h / スミス Developer @ YUMEMI プロフィール:https://s3i7h.com
そのAPI定義はなんだ〜!╰((#°Д°))╮🪓 出典:https://x.com/csharpVtuber/status/1819693444098630077 APIってブラウザからHTTPサーバと通信して実現するもの以外もある ぞ!(意訳) (余談)Web APIって呼び方でいいんだっけ・・
じゃあ何がAPIなんだってばよ🤔
API
よく見かける(馴染みが深い)API
GitHub REST API https://docs.github.com/ja/rest • GitHubでやりたいこと大体できます • 無料 • 未認証でもある程度使えるよ
Google Cloud APIs https://cloud.google.com/apis?hl=ja • Google Cloudのあれこれをプログラム経由で操作で きる! • 従量課金(リソースに対しての課金が多い)
(余談) 某世界的ECサイトのクラウドはドキュメントが( ry
他の身近なAPI(馴染みはないかも?)
POSIX (IEEE 1003.1) https://standards.ieee.org/ieee/1003.1/7700/ • Linux, macOS で何気なく使ってるやつら • ファイル操作、プロセス管理、ネットワーク通信などをさ
せてくれる • open、read、write、fork、execなど
Web API https://developer.mozilla.org/ja/docs/Web/API • ブラウザから活用できるAPI全般 • 通知、位置情報、カメラ、クリップボード、ファイル、 WebRTC、Websocket、fetchなどなど
https://dev.mysql.com/doc/c-api/8.0/en/ • 何気なく使うDBとのやりとりもAPI経由 • C(から利用するための) API RDBMS
つまり
APIとは システムとシステムを繋ぐ架け橋 である
APIを利用しよう!
APIを作ろう!
作れるAPIの例
OpenAPI / GraphQL / gRPC • URL割愛 • い つ も の •
私たちがAPI作る、というときは大体こいつら • サーバーで定義した動作をさせたい • 認証認可しっかり • 型定義も共有できるといいね
exec • 実行可能ファイル • コマンドラインオプション • 標準入出力 • 立派なAPI
matter https://csa-iot.org/all-solutions/matter/ • IoT向けプロトコル • なんと!!各社が作るIoTデバイス同士を連携させる プロトコルがあるって〜!? • 準拠するしかないっしょ!(チラッチラッ •
(冗談です)
APIとは システムとシステムを繋ぐ架け橋 である
そして
APIは システムを使っていいよ というコミュニケーションでもある
大事な話
ルール
できる !== やっていい
⚠リバースエンジニアリング • アプリやその通信内容を解析して機能を切り出す
⚠スクレイピング・bot • あなたはbotではないですか?の確認のあれ • LibraHack事件
やる前に聞こう!!!
システムが やってほしくないことはやめよう
そのためのAPI
API ❤ドキュメント • APIという形をとることで自然に、こういう形で使ってね、 を伝えることができる • helpメッセージ、manページはAPIの定義そのもの • man 1
hoge, man 2 fuga を使いこなそう The sections of the manual are: 1. General Commands Manual 2. System Calls Manual 3. Library Functions Manual 4. Kernel Interfaces Manual 5. File Formats Manual 6. Games Manual 7. Miscellaneous Information Manual 8. System Manager's Manual 9. Kernel Developer's Manual
まとめ
APIとは システムとシステムを繋ぐ架け橋 である
APIとは システムとシステムの約束事 である
🫶 🌎
ご清聴ありがとうございました