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
Transcript
14 slides
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
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.5k
iPhone が数秒おきにクラッシュするんだけど!
watura
0
57
ノートアプリにUndo機能を実装! UndoManager導入ポイント
watura
0
810
Swift Scripting入門
watura
0
140
2つのAuroraクラスタを同期したお話
watura
0
1.8k
Other Decks in Technology
See All in Technology
AWS Client VPNの設定でハマったポイントとその過程での気づき
amarelo_n24
1
440
閉域網でのAPI公開の選択肢全部比較!
takano0131
5
700
成長するID管理基盤における運用もコストも犠牲にしないオブザーバビリティ向上の実践 / Improving Observability for a Growing Identity Platform Without Adding Operational Burden or Cost
kaminashi
1
130
Go でトランザクション、どう書いてますか?
knwoop
1
590
設計手法を「道具」として使いこなすために
a_suenami
7
1.8k
Kiro Enterprise Management: 管理者が 1 か所で決め、全員の Kiro に届ける
inariku
PRO
0
100
コピーオンライト型ファイルシステムと ランダム書き込み
sat
PRO
2
140
そのイメージ、どのCIが作った? Artifact Attestationsで来歴を固定する / Which CI system created that image? Pinning provenance with Artifact Attestations
chmikata
0
270
ブース設計、 お前もプロダクトだったのか / So Booth Design Was a Product All Along
akihiro0038
0
150
「個社」ではなく「業界」の課題を解く AI 対話開発 ー 価値を広げる設計と、価値を守るエンジニアリング ー
ivry_presentationmaterials
4
870
リリースしたで終わらない。 観測できるフロントエンド開発
yamakenji24
2
240
エンタープライズIAMについて - ID・権限をどう統制するか
oidfj
1
320
Featured
See All Featured
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
540
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Designing Experiences People Love
moore
143
24k
Web Performance Is a Journey [PerfNow 2026]
tammyeverts
2
150
Balancing Empowerment & Direction
lara
6
1.4k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
580
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
2
4k
How to Think Like a Performance Engineer
csswizardry
28
2.9k
30 Presentation Tips
portentint
PRO
1
480
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
6.2k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
Everyday Curiosity
cassininazir
0
420