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
Transcript
16 slides
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}'
More Decks by Daisuke Baba
See All by Daisuke Baba
Docker for ServiceSync Hands-on
dbaba
0
160
Docker Pre Hands-on
dbaba
0
110
MOAT API + OSGi GWアプリ作成
dbaba
0
130
ServiceSyncとのつなぎ方 アプリ開発PubSub編
dbaba
0
520
Featured
See All Featured
How Software Deployment tools have changed in the past 20 years
geshan
3
35k
Test your architecture with Archunit
thirion
2
2.5k
Balancing Empowerment & Direction
lara
6
1.4k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
310
Unsuck your backbone
ammeep
672
58k
Mobile First: as difficult as doing things right
swwweet
225
10k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
810
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
560
So, you think you're a good person
axbom
PRO
2
2.3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
A designer walks into a library…
pauljervisheath
211
25k
Are puppies a ranking factor?
jonoalderson
2
4.2k