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
170
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
APIって結局何?世界を広げよう - マサカリ解説シリーズ
Yuichiro Smith
August 08, 2024
Transcript
37 slides
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とは システムとシステムの約束事 である
🫶 🌎
ご清聴ありがとうございました
More Decks by Yuichiro Smith
See All by Yuichiro Smith
老人会? いえ、技術継承です @ builderscon 2024 LT
s3i7h
0
190
Other Decks in Programming
See All in Programming
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
2
520
Claude Code ハーネスDeep Dive – 君はどこまで制御する? -
takateeen_knj
6
6.4k
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
250
Claude Codeのおかげでやりたいことがやれるようになったんだよォー!
sms_tech
0
190
Going Full Circle with Virtual Graphs and Relational Databases
michaelsimons
1
120
How SRE Grew Out of Server-Side Work and Became the Team's Own / サーバサイドから始まったSREを チームに渡すまで
maaaato
1
370
DroidKnights 2026 Android A2UI Jetpack Compose 기반의 안전한 AI UI 렌더링 - 박제창
itsmedreamwalker
1
270
Lean で手続き的プログラム の証明が書けるようになった
inoueasei
11
5.5k
SODA - FACT BOOK(EN)
sodainc
1
300
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
520
数行の変更でDockerビルドを最大91%高速化~GitLab CIの実行基盤を社内40リポジトリに展開するまで~
picopico
3
1.1k
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
240
Featured
See All Featured
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.5k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3.1k
Being A Developer After 40
akosma
PRO
92
590k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.7k
Designing for humans not robots
tammielis
254
26k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.3k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
How to build a perfect <img>
jonoalderson
1
6.3k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
680
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.3k