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
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
A Tale of Four Properties
chriscoyier
163
24k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
3
4.3k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1k
How to Think Like a Performance Engineer
csswizardry
28
2.8k
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
Google's AI Overviews - The New Search
badams
0
1.6k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Building the Perfect Custom Keyboard
takai
2
880
Into the Great Unknown - MozCon
thekraken
41
2.7k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
480
Crafting Experiences
bethany
1
340
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
830
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}'