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
ServiceSyncAppDevHandsOn2014JA.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Daisuke Baba
April 03, 2014
110
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ServiceSyncAppDevHandsOn2014JA.pdf
Daisuke Baba
April 03, 2014
More Decks by Daisuke Baba
See All by Daisuke Baba
Docker for ServiceSync Hands-on
dbaba
0
160
Docker Pre Hands-on
dbaba
0
100
MOAT API + OSGi GWアプリ作成
dbaba
0
130
ServiceSyncとのつなぎ方 アプリ開発PubSub編
dbaba
0
520
Featured
See All Featured
Ethics towards AI in product and experience design
skipperchong
2
430
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
3
3.9k
Skip the Path - Find Your Career Trail
mkilby
1
260
Unsuck your backbone
ammeep
672
58k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
A Tale of Four Properties
chriscoyier
163
24k
How to train your dragon (web standard)
notwaldorf
96
6.9k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Balancing Empowerment & Direction
lara
6
1.3k
Docker and Python
trallard
47
4.2k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
270
Transcript
ServiceSync ΞϓϦ։ൃϋϯζΦϯ 20144݄3 Inventit Inc.
త • σόΠεΛRESTܦ༝ͰͲͷΑ͏ʹ੍ޚ Ͱ͖Δͷ͔Λମݧ͢Δ͜ͱ • ΞϓϦ͕ͲͷΑ͏ͳ࡞ΓํΛͰ͖Δͷ ͔ʹ͍ͭͯ૾Ͱ͖ΔΑ͏ʹͳΔ͜ͱ
શମߏ
ࠓճͷ༰ • ੍ޚରσόΠεͱͯ͠εϚϗΛͬ ͯΈΑ͏ • RESTΛར༻ͯ͠σόΠεใΛͱͬͨ Γɺ੍ޚͯ͠ΈΑ͏
ׂ࣌ؒද • 0:00~0:05 ... ֓ཁઆ໌ • 0:05~0:20 ... ڥ४උ •
0:20~0:35 ... APKΠϯετʔϧ • 0:35~0:55 ... RailsΞϓϦ࡞ • 0:55~1:00 ... ٳܜ • 1:00~1:20 ... ಈ࡞֬ೝʢΫϥΠΞϯτىಈʣ • 1:20~1:50 ... ಈ࡞֬ೝʢαʔόʔىಈʣ • 1:50~2:00 ... ϑΟʔυόοΫʢཧղɺཁɺෆ໌ʣ
࣍ͷεςοϓ • REST • RailsΞϓϦͷΘΓʹiOSΞϓϦAndroidΞϓϦΛ࡞Δ • js • αʔόʔଆjsΛมߋͯ͠ΈΔ •
Android • APKΛมߋͯ͠ΈΔ • όϦΤʔγϣϯ • Raspberry PiArduinoͳͲ͍ΖΜͳσόΠεΛࢼ͢
Appendix IIDN-CLIସํ๏
αΠϯΞοϓ 1/2 ݩͷίϚϯυɿ sh $CLI/iidn signup github ସɿ curl -X
GET 'https://sandbox.service- sync.com/moat/v1/sys/oauth2auth? p=github&t=authorization'
αΠϯΞοϓ 2/2 {"authorizationUri":"https://github.com/login/oauth/authorize? client_id=d0842f015cb522a90af7&redirect_uri=https%3A%2F%2Fsandbox.service- sync.com%2Fmoat %2Foauth2callback&scope=user&state=d212ff1b99b5cc1eb585a57b46928a14%3A67 6974687562"} ্هauthorizationUriΛChromeʹͯදࣔ →GitHub/Facebookʹͯঝೝ͢Δ →CompleteϘλϯΛԡ͢ͱϑΝΠϧΛμ
ϯϩʔυͰ͖Δ
ϩάΠϯ curl -X GET 'https://sandbox.service- sync.com/moat/v1/sys/auth?a=${APP_ID} &u=${AUTH_USER_ID}&c=$ {AUTH_PASSWORD} →accessTokenϓϩύςΟͷΛҎ߱༻ ͢Δʢ${ACC_TOKEN}ʣ
jsϑΝΠϧσϓϩΠ ݩͷίϚϯυɿ sh $CLI/iidn jsdeploy ./simple-example.zip ସɿ curl -X POST
-H "Content-Type:applicatioin/ octet-stream" -T path/to/simple-example.zip "https://sandbox.service-sync.com/moat/v1/ sys/package?token=${ACC_TOKEN}"
jsϑΝΠϧআ ݩͷίϚϯυɿ sh $CLI/iidn jsundeploy simple-example.zip ସɿ curl -X DELETE
'https://sandbox.service- sync.com/moat/v1/sys/package/simple- example?token=${ACC_TOKEN}'
jarμϯϩʔυ 1/3 ݩͷίϚϯυɿ sh $CLI/iidn sysdownload \ inventit-dmc-android-lib-api-4.0.0-prod.jar ସɿ ʢલఏͱͯ͠ԼهEULA߹ҙ͘͜ͱʣ
http://dev.inventit.io/files/2013JAN-IBCLA.txt
jarμϯϩʔυ 2/3 ସɿ curl -X GET "https://sandbox.service- sync.com/moat/v1/sys/package/inventit-dmc- android-lib-api-4.0.0-prod.jar?token=$ {ACC_TOKEN}&r=get&u=$
{AUTH_USER_ID} &accept_eula=yes&eula=http%3A// dev.inventit.io/files/2013JAN-IBCLA.txt"
jsμϯϩʔυ 3/3 →getϓϩύςΟʹ͋ΔURLΛcURLͰऔಘ ͢Δ curl -O inventit-dmc-android-lib-api-4.0.0- prod.jar 'https://....'
ॺ໊tokenऔಘ ݩͷίϚϯυɿ sh $CLI/iidn tokengen simple-example ସɿ curl -O signed.bin
'https://sandbox.service- sync.com/moat/v1/sys/package/simple-example? secureToken=true&genId=0001&token=$ {ACC_TOKEN}'