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
Zaim API
Search
watura
December 21, 2015
Technology
1
690
Zaim API
20151222Realm忘年会
watura
December 21, 2015
Tweet
Share
More Decks by watura
See All by watura
Ruby note Mobile Tech Talk #1
watura
0
520
iPhone が数秒おきにクラッシュするんだけど!
watura
0
6
ノートアプリにUndo機能を実装! UndoManager導入ポイント
watura
0
270
Swift Scripting入門
watura
0
120
2つのAuroraクラスタを同期したお話
watura
0
1.5k
Other Decks in Technology
See All in Technology
Site Reliability Engineering on Kubernetes
nwiizo
6
3.6k
データ基盤におけるIaCの重要性とその運用
mtpooh
5
790
やっちゃえ誤自宅Nutanix
yukiafronia
0
320
RevOpsへ至る道 データ活用による事業革新への挑戦 / path-to-revops
pei0804
1
390
Autify Company Deck
autifyhq
2
41k
SREKaigi.pdf
_awache
2
3k
srekaigi2025-hajimete-ippo-aws
masakichieng
0
130
GDG Tokyo 生成 AI 論文をわいわい読む会
enakai00
0
250
サービスローンチを成功させろ! 〜SREが教える30日間の攻略ガイド〜
mmmatsuda
2
3.6k
新卒1年目、はじめてのアプリケーションサーバー【IBM WebSphere Liberty】
ktgrryt
0
190
20250125_Agent for Amazon Bedrock試してみた
riz3f7
2
110
財務データを題材に、 ETLとは何であるかを考える
shoe116
5
1.9k
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
6
210
A Tale of Four Properties
chriscoyier
157
23k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.2k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Optimizing for Happiness
mojombo
376
70k
The World Runs on Bad Software
bkeepers
PRO
66
11k
Faster Mobile Websites
deanohume
305
30k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.4k
What's in a price? How to price your products and services
michaelherold
244
12k
Transcript
Zaim API גࣜձࣾ Zaim ຊߤ @watura ΄ͱΜͲએ ਲ͍͕ͬൃද͠·͢ 4݄͔ΒZaimͰΤϯδχΞ ৽ଔͰ͢
͍͜͠ͱ֮ͯ͑͠ΒΕͳ͍
ࣗݾհ 2 ΤϯδχΞ iOSɹWEBɹΠϯϑϥ גࣜձࣾZaim ຊ ߤ ( @watura )
None
Zaim - iOS - Android - Web - Windows Ͱ͏͍ͯ͝·͢
iOS൛Zaim 5 ࠓTitaniumͰಈ͍ͯ·͢ɹ͕ɼ Swift Realm ReactiveCocoaʹมΘΓ·͢ 201XY݄ɹϦϦʔε༧ఆ
ࠓZaim APIͷ 6 ͬͯ·͔͢ʁ ZaimAPIΛެ։͍ͯ͠·͢
https://dev.zaim.net 7
༷ʢͪΐͬͱ͚ͩʣ • ZaimͷશͯͰͳ͍Ͱ͕͢ɼ৭ʑެ։͍ͯ͠·͢ • OAuth 1.0a • REST • JSON
8 https://dev.zaim.net
APIKit, Himotoki, Realm • Zaim Swift൛Ͱ - APIΛୟ͘ͷʹAPIKit - JSONΛσίʔυ͢ΔͷʹHimotoki
- σʔλΛอଘ͢ΔͷʹRealm • ಛʹมΘ͍ͬͨํͱ͔ͯ͠ͳ͍ →ࠓԿͦ͏͔ʁ 9 https://dev.zaim.net
MoneyͷΞοϓσʔτ • Moneyͱ͍͏ͷՈܭͷҰ߲ - date : 2015-12-21 - amount: 2000
- currency_code: JPY - comment: RealmձͷࢀՃඅ - Category: ަࡍඅ - Genre: ԅձ - From: ࢲͷࡒ - etc 10
MoneyͷΞοϓσʔτ • GET, POST, PUTͱ͔Ͱऔಘૹ৴Ͱ͖Δ • GET : APIKit →
Himotoki → Realm • POST, PUTɿ - Realm → खಈͰDictionary, StructʹೖΕΔʁ • RealmModel͔ΒDictionary࡞Εָͩʂ 11
RealmศརͰͨ͠ • Object.objectSchema.properties - ϓϩύςΟҰཡ͕औಘͰ͖Δ • self[property.name] - property nameͷऔΕΔ
• ͋ͱ Listͱ͔Objectͩͬͨ࣌ͷରԠΛ͢Δ͚ͩ ͔ͳΓ؆୯ʹObject → Dictionary͕Ͱ͖·ͨ͠ • ଓ͖ Realm Advent Calendar 3 12
͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ ZaimͰ Zaim APIΛ OAuth2.0ʹͯ͘͠ΕͨΓ Swift൛ɼAndroid൛ɼWWW൛ͱ͔ͱ͔Λ Ұॹʹ࡞ͬͯ͘ΕΔਓΛ୳͍ͯ͠·͢ ར༻ن͑͞ಉҙͯ͘͠ΕΕ ୭Ͱ͑ΔՈܭAPIΛ ެ։͍ͯ͠ΔͷZaim͚ͩʁʂ
ʢଞௐͯͳ͍͔ΒΒΜ͚Ͳʣ 13 https://dev.zaim.net
14