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
Zaim API
Search
watura
December 21, 2015
Technology
760
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Zaim API
20151222Realm忘年会
watura
December 21, 2015
More Decks by watura
See All by watura
ふりがな Deep Dive try! Swift Tokyo 2026
watura
0
1.2k
Ruby note Mobile Tech Talk #1
watura
0
2.4k
iPhone が数秒おきにクラッシュするんだけど!
watura
0
51
ノートアプリにUndo機能を実装! UndoManager導入ポイント
watura
0
800
Swift Scripting入門
watura
0
140
2つのAuroraクラスタを同期したお話
watura
0
1.8k
Other Decks in Technology
See All in Technology
自律的なチームを作るためにTechPMがやらないこと
ny7760
1
530
Claude Codeで作ったアプリを安全に公開する/Built with Claude Japan 2026
yoshidashingo
0
210
[JAWS Festa 2026]一番いい仕事は、請求書に現れない / jawsfesta2026
sh_fk2
2
390
プロダクションコードにおける encoding/json から encoding/json/v2 へのスムーズな移行
sansantech
PRO
1
170
[General] 개발자로 해외 기업에서 일하기
skydoves
1
310
生成AI時代のIAMのマニアックな話
takuros
6
2.7k
視野はAIに、視座は人に / ai-for-breadth-humans-for-perspective
nkzn
6
3.2k
Shared Signals Framework 仕様解説
oidfj
0
240
Microsoft Entra Kerberos で実現するクラウド デバイス管理
tamaiyutaro
2
650
Content Mapper APIの応用例~CSS Modules、言語ファイル~
uhyo
2
620
自治体AIコンタクトセンター、何をどこに任せる?~Amazon Connect Customer +Amazon Bedrockの実践知~ / 20261107 Satoshi Torano
shift_evolve
PRO
1
100
業務でAWSをあまり使っていない私が、AWSへのモチベを保つ方法
smt7174
0
180
Featured
See All Featured
Art, The Web, and Tiny UX
lynnandtonic
304
22k
Code Review Best Practice
trishagee
74
20k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
360
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
300
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
560
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
510
Become a Pro
speakerdeck
PRO
31
6.4k
The agentic SEO stack - context over prompts
schlessera
0
1k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3.1k
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