SlideShare une entreprise Scribd logo
1  sur  52
Developing Social Apps Using Adobe AIR and Social Network API’s AIR & API about.me/arisetyo
Arie M. Prasetyo Co-Founder, Galenic Systems Founder, AxonDigital
Presentation Outline 01 Introduction 02 Working With API & ActionScript 03 The “GroupieSize” Game App
Part 01 Introduction Adobe AIR and various API’s
Adobe AIR and various API’s Adobe Integrated Runtime
Adobe AIR and various API’s Adobe AIR Features Access File System and Local Database
Adobe AIR and various API’s Adobe AIR Features Access File System and Local Database Runs On Various Operating Systems
Adobe AIR and various API’s Adobe AIR Features Access File System and Local Database Runs On Various Operating Systems Runs On Multiple Devices
Adobe AIR and various API’s Adobe AIR Features Access File System and Local Database Runs On Various Operating Systems Runs On Multiple Devices Effortless Internet Connectivity
Adobe AIR and various API’s Who uses Adobe AIR?
Adobe AIR and various API’s Who uses Adobe AIR? NASDAQ NASDAQ Market Replay A powerful desktop application that provides investors and brokers with immediate access to extremely detailed replays of market activity at any point in time.
Adobe AIR and various API’s Who uses Adobe AIR? The New York Times New York Times Reader 2.0 With the innovative Times Reader 2.0, readers of The New York Times enjoy an experience reminiscent of reading a printed paper, while getting the benefits of automatic news updates and video.
Adobe AIR and various API’s Application Programming Interface Social networks are providing access to third party application to help promote their brand.
Adobe AIR and various API’s Various Social Network API’s Facebook API & Open Graph Protocol
Adobe AIR and various API’s Various Social Network API’s Facebook API & Open Graph Protocol Twitter API
Adobe AIR and various API’s Various Social Network API’s Facebook API & Open Graph Protocol Twitter API Google API’s
Adobe AIR and various API’s Various Social Network API’s Facebook API & Open Graph Protocol Twitter API Google API’s Amazon Web Services
Adobe AIR and various API’s Why Integrate With Social API’s?
Adobe AIR and various API’s Why Integrate With Social API’s? Billions of Information From Millions of Users
Adobe AIR and various API’s Why Integrate With Social API’s? Billions of Information From Millions of Users Hosted & Relatively Secure
Adobe AIR and various API’s Why Integrate With Social API’s? Billions of Information From Millions of Users Hosted & Relatively Secure Integrate With Other Apps
Adobe AIR and various API’s Why Integrate With Social API’s? Billions of Information From Millions of Users Hosted & Relatively Secure Integrate With Other Apps It’s Simply Fun :)
Part 02 Working With API & ActionScript Result Formats & Authentication
Result Formats & Authentication Common Result Formats
Result Formats & Authentication Common Result Formats XML (eXtensible Markup Language)
Result Formats & Authentication Common Result Formats XML (eXtensible Markup Language) JSON (Javascript Object Notation)
Result Formats & Authentication Common Result Formats XML (eXtensible Markup Language) JSON (Javascript Object Notation) JSON is my personal favorite.
Result Formats & Authentication Common Result Formats XML (eXtensible Markup Language) JSON (Javascript Object Notation) JSON is my personal favorite. It’s fairly readable
Result Formats & Authentication Common Result Formats XML (eXtensible Markup Language) JSON (Javascript Object Notation) JSON is my personal favorite. It’s fairly readable Readily parsed into array in ActionScript
Result Formats & Authentication Common Result Formats XML (eXtensible Markup Language) JSON (Javascript Object Notation) JSON is my personal favorite. It’s fairly readable Readily parsed into array in ActionScript The majority of social networks have JSON formatted API call result
Result Formats & Authentication Parsing JSON An example of an API call result formatted as JSON [{"results":[ {"from_user_id_str":"27200872","profile_image_url":"http://a1.twimg.com/profile_images/1078865146/roasted-pepper_normal.jpg","created_at":"Tue, 18 Jan 2011 20:36:06 +0000","from_user":"masdennis","id_str":"27464269884821504","metadata":{"result_type":"recent"},"to_user_id":null,"text":"RT @tubagus99: I'm Speaking on Adobe Flash Camp Indonesia http://bit.ly/eGTfOn, see u tomorrow..","id":27464269884821504,"from_user_id":27200872,"geo":null,"iso_language_code":"en","to_user_id_str":null,"source":"<a href="http://www.tweetdeck.com" rel="nofollow">TweetDeck</a>"},{"from_user_id_str":"4809310","profile_image_url":"http://a0.twimg.com/profile_images/1127731248/4square_normal.png","created_at":"Tue, 18 Jan 2011 18:25:12 +0000","from_user":"tubagus99","id_str":"27431327036866560","metadata":{"result_type":"recent"},"to_user_id":null,"text":"I'm Speaking on Adobe Flash Camp Indonesia http://bit.ly/eGTfOn, see u tomorrow..","id":27431327036866560,"from_user_id":4809310,"geo":null,"iso_language_code":"en","to_user_id_str":null,"source":"<a href="http://www.tweetdeck.com" rel="nofollow">TweetDeck</a>"}... http://search.twitter.com/search.json?q=adobe%20camp%20indonesia&rpp=50
Result Formats & Authentication Parsing JSON The ActionScipt to convert the result into an array _httpService.url = _apiCall; _httpService.resultFormat = "text"; _httpService.addEventListener(ResultEvent.RESULT,resultTweets); _httpService.send(); function resultTweets(event:ResultEvent):void {  _jsonResult = "[" + String(event.result) + "]";  var arr:Array = (JSON.decode(_jsonResult) as Array);   var rawResults:Array = arr[0].results;  _tweetsAC = new ArrayCollection(rawResults); } samples/json/parsing.mxml
Result Formats & Authentication Parsing JSON Example App In Action
Result Formats & Authentication Authentication Methods
Result Formats & Authentication Authentication Methods Basic HTTP
Result Formats & Authentication Authentication Methods Basic HTTP OpenID
Result Formats & Authentication Authentication Methods Basic HTTP OpenID OAuth
Result Formats & Authentication Authenticating The App Using ActionScript and OAuth protocol
Result Formats & Authentication Authenticating The App Using ActionScript and OAuth protocol CodeRanger’s OAuth library
Result Formats & Authentication Authenticating The App Using ActionScript and OAuth protocol CodeRanger’s OAuth library Sample App In Action samples/oauth
Part 03 The “GroupieSize” Game App Let’s Build A Simple Game
Let’s Build A Simple Game Game Concept
Let’s Build A Simple Game Game Concept How Well Do You Know Currently Popular Musicians
Let’s Build A Simple Game Game Concept How Well Do You Know Currently Popular Musicians An Adobe AIR Desktop Application
Let’s Build A Simple Game Game Concept How Well Do You Know Currently Popular Musicians An Adobe AIR Desktop Application Uses Data Collected from Last.fm
Let’s Build A Simple Game Core Codes Get random artists information samples/groupiesize/index.mxml
Let’s Build A Simple Game Core Codes Get random artists information Get artists’ listeners count samples/groupiesize/index.mxml
Let’s Build A Simple Game Core Codes Get random artists information Get artists’ listeners count Display question samples/groupiesize/index.mxml
Let’s Build A Simple Game Core Codes Get random artists information Get artists’ listeners count Display question Display answer and artists’ information samples/groupiesize/index.mxml
Let’s Build A Simple Game Core Codes Get random artists information Get artists’ listeners count Display question Display answer and artists’ information Record score samples/groupiesize/index.mxml
Closing Questions?
Thank You Developing Social Apps Using Adobe AIR and Social Network API’s : AIR & API about.me/arisetyo

Contenu connexe

Tendances

AI: Mobile Apps That Understands Your Intention When You Typed
AI: Mobile Apps That Understands Your Intention When You TypedAI: Mobile Apps That Understands Your Intention When You Typed
AI: Mobile Apps That Understands Your Intention When You TypedMarvin Heng
 
Get started azure- Azure Mobile Services
Get started azure- Azure Mobile ServicesGet started azure- Azure Mobile Services
Get started azure- Azure Mobile ServicesSenthamil Selvan
 
Quality sdk for your apis in minutes!
Quality sdk for your apis in minutes!Quality sdk for your apis in minutes!
Quality sdk for your apis in minutes!Son Nguyen
 
Building APIs That Last for Decades - Irakli Nadareishvili, Director of API S...
Building APIs That Last for Decades - Irakli Nadareishvili, Director of API S...Building APIs That Last for Decades - Irakli Nadareishvili, Director of API S...
Building APIs That Last for Decades - Irakli Nadareishvili, Director of API S...CA API Management
 
iOS Provisioning : Running your app in an iOS device
iOS Provisioning : Running your app in an iOS deviceiOS Provisioning : Running your app in an iOS device
iOS Provisioning : Running your app in an iOS deviceMadusha Perera
 
Open Event API
Open Event APIOpen Event API
Open Event APIAvi Aryan
 
apidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflix
apidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflixapidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflix
apidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflixapidays
 
Training Session 2
Training Session 2 Training Session 2
Training Session 2 Vivek Bhusal
 
Building Self Documenting REST APIs
Building Self Documenting REST APIsBuilding Self Documenting REST APIs
Building Self Documenting REST APIsYan Pritzker
 
CIS 2015 Mobile SSO
CIS 2015 Mobile SSOCIS 2015 Mobile SSO
CIS 2015 Mobile SSOAshish Jain
 
Getting started with Appcelerator Titanium
Getting started with Appcelerator TitaniumGetting started with Appcelerator Titanium
Getting started with Appcelerator TitaniumTechday7
 
PHP in a mobile ecosystem
PHP in a mobile ecosystem PHP in a mobile ecosystem
PHP in a mobile ecosystem Ivo Jansch
 
Startup Concept Development with Remote Resources using React Native, Enginee...
Startup Concept Development with Remote Resources using React Native, Enginee...Startup Concept Development with Remote Resources using React Native, Enginee...
Startup Concept Development with Remote Resources using React Native, Enginee...engineermaste solution
 
40行で書ける! Serverless LINE BOT
40行で書ける! Serverless LINE BOT40行で書ける! Serverless LINE BOT
40行で書ける! Serverless LINE BOTLINE Corporation
 
Kodak - OpenID Retail Summit at PayPal
Kodak - OpenID Retail Summit at PayPalKodak - OpenID Retail Summit at PayPal
Kodak - OpenID Retail Summit at PayPalAshish Jain
 
new Android UI Patterns
new Android UI Patternsnew Android UI Patterns
new Android UI PatternsJohan Nilsson
 

Tendances (18)

AI: Mobile Apps That Understands Your Intention When You Typed
AI: Mobile Apps That Understands Your Intention When You TypedAI: Mobile Apps That Understands Your Intention When You Typed
AI: Mobile Apps That Understands Your Intention When You Typed
 
Get started azure- Azure Mobile Services
Get started azure- Azure Mobile ServicesGet started azure- Azure Mobile Services
Get started azure- Azure Mobile Services
 
Quality sdk for your apis in minutes!
Quality sdk for your apis in minutes!Quality sdk for your apis in minutes!
Quality sdk for your apis in minutes!
 
Building APIs That Last for Decades - Irakli Nadareishvili, Director of API S...
Building APIs That Last for Decades - Irakli Nadareishvili, Director of API S...Building APIs That Last for Decades - Irakli Nadareishvili, Director of API S...
Building APIs That Last for Decades - Irakli Nadareishvili, Director of API S...
 
iOS Provisioning : Running your app in an iOS device
iOS Provisioning : Running your app in an iOS deviceiOS Provisioning : Running your app in an iOS device
iOS Provisioning : Running your app in an iOS device
 
Open Event API
Open Event APIOpen Event API
Open Event API
 
apidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflix
apidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflixapidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflix
apidays LIVE Hong Kong 2021 - Less Data is More by Damir Svrtan, Netflix
 
Training Session 2
Training Session 2 Training Session 2
Training Session 2
 
Building Self Documenting REST APIs
Building Self Documenting REST APIsBuilding Self Documenting REST APIs
Building Self Documenting REST APIs
 
Mulesoft Raml APIs
Mulesoft Raml APIsMulesoft Raml APIs
Mulesoft Raml APIs
 
CIS 2015 Mobile SSO
CIS 2015 Mobile SSOCIS 2015 Mobile SSO
CIS 2015 Mobile SSO
 
Getting started with Appcelerator Titanium
Getting started with Appcelerator TitaniumGetting started with Appcelerator Titanium
Getting started with Appcelerator Titanium
 
PHP in a mobile ecosystem
PHP in a mobile ecosystem PHP in a mobile ecosystem
PHP in a mobile ecosystem
 
Startup Concept Development with Remote Resources using React Native, Enginee...
Startup Concept Development with Remote Resources using React Native, Enginee...Startup Concept Development with Remote Resources using React Native, Enginee...
Startup Concept Development with Remote Resources using React Native, Enginee...
 
40行で書ける! Serverless LINE BOT
40行で書ける! Serverless LINE BOT40行で書ける! Serverless LINE BOT
40行で書ける! Serverless LINE BOT
 
Kodak - OpenID Retail Summit at PayPal
Kodak - OpenID Retail Summit at PayPalKodak - OpenID Retail Summit at PayPal
Kodak - OpenID Retail Summit at PayPal
 
new Android UI Patterns
new Android UI Patternsnew Android UI Patterns
new Android UI Patterns
 
GoferZone
GoferZoneGoferZone
GoferZone
 

Similaire à AIR & API

OpenSocial Intro
OpenSocial IntroOpenSocial Intro
OpenSocial IntroPamela Fox
 
API Workshop: Deep dive into REST APIs
API Workshop: Deep dive into REST APIsAPI Workshop: Deep dive into REST APIs
API Workshop: Deep dive into REST APIsTom Johnson
 
Developing Apps with Azure AD
Developing Apps with Azure ADDeveloping Apps with Azure AD
Developing Apps with Azure ADSharePointRadi
 
SharePoint 2013 Apps and the App Model
SharePoint 2013 Apps and the App ModelSharePoint 2013 Apps and the App Model
SharePoint 2013 Apps and the App ModelJames Tramel
 
Benvenuti nella “API Economy”
Benvenuti nella “API Economy”Benvenuti nella “API Economy”
Benvenuti nella “API Economy”Codemotion
 
What are ap is, how do they work, and why are they beneficial to developers a...
What are ap is, how do they work, and why are they beneficial to developers a...What are ap is, how do they work, and why are they beneficial to developers a...
What are ap is, how do they work, and why are they beneficial to developers a...Shelly Megan
 
App Model For SharePoint 2013
App Model For SharePoint 2013App Model For SharePoint 2013
App Model For SharePoint 2013Toni Il Caiser
 
The Next Step to Build Better APIs — Consistent Data Structure
The Next Step to Build Better APIs — Consistent Data StructureThe Next Step to Build Better APIs — Consistent Data Structure
The Next Step to Build Better APIs — Consistent Data StructureDialexa
 
Magento Imgine eCommerce Conference February 2011: Mashup of Magento and Sale...
Magento Imgine eCommerce Conference February 2011: Mashup of Magento and Sale...Magento Imgine eCommerce Conference February 2011: Mashup of Magento and Sale...
Magento Imgine eCommerce Conference February 2011: Mashup of Magento and Sale...varien
 
Confessions of-a-gadget-holic
Confessions of-a-gadget-holicConfessions of-a-gadget-holic
Confessions of-a-gadget-holicTyrell Perera
 
Thadomal IEEE-HTML5-Workshop
Thadomal IEEE-HTML5-WorkshopThadomal IEEE-HTML5-Workshop
Thadomal IEEE-HTML5-WorkshopRomin Irani
 
Creating Datadipity
Creating DatadipityCreating Datadipity
Creating DatadipityClickslide
 
How App Indexation Works
How App Indexation WorksHow App Indexation Works
How App Indexation WorksSerenaPearson2
 
2014 SharePoint Saturday Melbourne Apps or not to Apps
2014 SharePoint Saturday Melbourne Apps or not to Apps2014 SharePoint Saturday Melbourne Apps or not to Apps
2014 SharePoint Saturday Melbourne Apps or not to AppsGilles Pommier
 
The API SlideShare for Bankers and Fintech Executives
The API SlideShare for Bankers and Fintech ExecutivesThe API SlideShare for Bankers and Fintech Executives
The API SlideShare for Bankers and Fintech ExecutivesMX
 

Similaire à AIR & API (20)

OpenSocial Intro
OpenSocial IntroOpenSocial Intro
OpenSocial Intro
 
API Workshop: Deep dive into REST APIs
API Workshop: Deep dive into REST APIsAPI Workshop: Deep dive into REST APIs
API Workshop: Deep dive into REST APIs
 
Developing Apps with Azure AD
Developing Apps with Azure ADDeveloping Apps with Azure AD
Developing Apps with Azure AD
 
Opensocial
OpensocialOpensocial
Opensocial
 
SharePoint 2013 Apps and the App Model
SharePoint 2013 Apps and the App ModelSharePoint 2013 Apps and the App Model
SharePoint 2013 Apps and the App Model
 
Benvenuti nella “API Economy”
Benvenuti nella “API Economy”Benvenuti nella “API Economy”
Benvenuti nella “API Economy”
 
What are ap is, how do they work, and why are they beneficial to developers a...
What are ap is, how do they work, and why are they beneficial to developers a...What are ap is, how do they work, and why are they beneficial to developers a...
What are ap is, how do they work, and why are they beneficial to developers a...
 
App Model For SharePoint 2013
App Model For SharePoint 2013App Model For SharePoint 2013
App Model For SharePoint 2013
 
The Next Step to Build Better APIs — Consistent Data Structure
The Next Step to Build Better APIs — Consistent Data StructureThe Next Step to Build Better APIs — Consistent Data Structure
The Next Step to Build Better APIs — Consistent Data Structure
 
Magento Imgine eCommerce Conference February 2011: Mashup of Magento and Sale...
Magento Imgine eCommerce Conference February 2011: Mashup of Magento and Sale...Magento Imgine eCommerce Conference February 2011: Mashup of Magento and Sale...
Magento Imgine eCommerce Conference February 2011: Mashup of Magento and Sale...
 
Confessions of-a-gadget-holic
Confessions of-a-gadget-holicConfessions of-a-gadget-holic
Confessions of-a-gadget-holic
 
Google APIs
Google APIsGoogle APIs
Google APIs
 
Thadomal IEEE-HTML5-Workshop
Thadomal IEEE-HTML5-WorkshopThadomal IEEE-HTML5-Workshop
Thadomal IEEE-HTML5-Workshop
 
Creating Datadipity
Creating DatadipityCreating Datadipity
Creating Datadipity
 
How App Indexation Works
How App Indexation WorksHow App Indexation Works
How App Indexation Works
 
Mkp resume.docx
Mkp resume.docxMkp resume.docx
Mkp resume.docx
 
Crafting APIs
Crafting APIsCrafting APIs
Crafting APIs
 
2014 SharePoint Saturday Melbourne Apps or not to Apps
2014 SharePoint Saturday Melbourne Apps or not to Apps2014 SharePoint Saturday Melbourne Apps or not to Apps
2014 SharePoint Saturday Melbourne Apps or not to Apps
 
OpenSocial
OpenSocialOpenSocial
OpenSocial
 
The API SlideShare for Bankers and Fintech Executives
The API SlideShare for Bankers and Fintech ExecutivesThe API SlideShare for Bankers and Fintech Executives
The API SlideShare for Bankers and Fintech Executives
 

AIR & API

  • 1. Developing Social Apps Using Adobe AIR and Social Network API’s AIR & API about.me/arisetyo
  • 2. Arie M. Prasetyo Co-Founder, Galenic Systems Founder, AxonDigital
  • 3. Presentation Outline 01 Introduction 02 Working With API & ActionScript 03 The “GroupieSize” Game App
  • 4. Part 01 Introduction Adobe AIR and various API’s
  • 5. Adobe AIR and various API’s Adobe Integrated Runtime
  • 6. Adobe AIR and various API’s Adobe AIR Features Access File System and Local Database
  • 7. Adobe AIR and various API’s Adobe AIR Features Access File System and Local Database Runs On Various Operating Systems
  • 8. Adobe AIR and various API’s Adobe AIR Features Access File System and Local Database Runs On Various Operating Systems Runs On Multiple Devices
  • 9. Adobe AIR and various API’s Adobe AIR Features Access File System and Local Database Runs On Various Operating Systems Runs On Multiple Devices Effortless Internet Connectivity
  • 10. Adobe AIR and various API’s Who uses Adobe AIR?
  • 11. Adobe AIR and various API’s Who uses Adobe AIR? NASDAQ NASDAQ Market Replay A powerful desktop application that provides investors and brokers with immediate access to extremely detailed replays of market activity at any point in time.
  • 12. Adobe AIR and various API’s Who uses Adobe AIR? The New York Times New York Times Reader 2.0 With the innovative Times Reader 2.0, readers of The New York Times enjoy an experience reminiscent of reading a printed paper, while getting the benefits of automatic news updates and video.
  • 13. Adobe AIR and various API’s Application Programming Interface Social networks are providing access to third party application to help promote their brand.
  • 14. Adobe AIR and various API’s Various Social Network API’s Facebook API & Open Graph Protocol
  • 15. Adobe AIR and various API’s Various Social Network API’s Facebook API & Open Graph Protocol Twitter API
  • 16. Adobe AIR and various API’s Various Social Network API’s Facebook API & Open Graph Protocol Twitter API Google API’s
  • 17. Adobe AIR and various API’s Various Social Network API’s Facebook API & Open Graph Protocol Twitter API Google API’s Amazon Web Services
  • 18. Adobe AIR and various API’s Why Integrate With Social API’s?
  • 19. Adobe AIR and various API’s Why Integrate With Social API’s? Billions of Information From Millions of Users
  • 20. Adobe AIR and various API’s Why Integrate With Social API’s? Billions of Information From Millions of Users Hosted & Relatively Secure
  • 21. Adobe AIR and various API’s Why Integrate With Social API’s? Billions of Information From Millions of Users Hosted & Relatively Secure Integrate With Other Apps
  • 22. Adobe AIR and various API’s Why Integrate With Social API’s? Billions of Information From Millions of Users Hosted & Relatively Secure Integrate With Other Apps It’s Simply Fun :)
  • 23. Part 02 Working With API & ActionScript Result Formats & Authentication
  • 24. Result Formats & Authentication Common Result Formats
  • 25. Result Formats & Authentication Common Result Formats XML (eXtensible Markup Language)
  • 26. Result Formats & Authentication Common Result Formats XML (eXtensible Markup Language) JSON (Javascript Object Notation)
  • 27. Result Formats & Authentication Common Result Formats XML (eXtensible Markup Language) JSON (Javascript Object Notation) JSON is my personal favorite.
  • 28. Result Formats & Authentication Common Result Formats XML (eXtensible Markup Language) JSON (Javascript Object Notation) JSON is my personal favorite. It’s fairly readable
  • 29. Result Formats & Authentication Common Result Formats XML (eXtensible Markup Language) JSON (Javascript Object Notation) JSON is my personal favorite. It’s fairly readable Readily parsed into array in ActionScript
  • 30. Result Formats & Authentication Common Result Formats XML (eXtensible Markup Language) JSON (Javascript Object Notation) JSON is my personal favorite. It’s fairly readable Readily parsed into array in ActionScript The majority of social networks have JSON formatted API call result
  • 31. Result Formats & Authentication Parsing JSON An example of an API call result formatted as JSON [{"results":[ {"from_user_id_str":"27200872","profile_image_url":"http://a1.twimg.com/profile_images/1078865146/roasted-pepper_normal.jpg","created_at":"Tue, 18 Jan 2011 20:36:06 +0000","from_user":"masdennis","id_str":"27464269884821504","metadata":{"result_type":"recent"},"to_user_id":null,"text":"RT @tubagus99: I'm Speaking on Adobe Flash Camp Indonesia http://bit.ly/eGTfOn, see u tomorrow..","id":27464269884821504,"from_user_id":27200872,"geo":null,"iso_language_code":"en","to_user_id_str":null,"source":"<a href="http://www.tweetdeck.com" rel="nofollow">TweetDeck</a>"},{"from_user_id_str":"4809310","profile_image_url":"http://a0.twimg.com/profile_images/1127731248/4square_normal.png","created_at":"Tue, 18 Jan 2011 18:25:12 +0000","from_user":"tubagus99","id_str":"27431327036866560","metadata":{"result_type":"recent"},"to_user_id":null,"text":"I'm Speaking on Adobe Flash Camp Indonesia http://bit.ly/eGTfOn, see u tomorrow..","id":27431327036866560,"from_user_id":4809310,"geo":null,"iso_language_code":"en","to_user_id_str":null,"source":"<a href="http://www.tweetdeck.com" rel="nofollow">TweetDeck</a>"}... http://search.twitter.com/search.json?q=adobe%20camp%20indonesia&rpp=50
  • 32. Result Formats & Authentication Parsing JSON The ActionScipt to convert the result into an array _httpService.url = _apiCall; _httpService.resultFormat = "text"; _httpService.addEventListener(ResultEvent.RESULT,resultTweets); _httpService.send(); function resultTweets(event:ResultEvent):void { _jsonResult = "[" + String(event.result) + "]"; var arr:Array = (JSON.decode(_jsonResult) as Array); var rawResults:Array = arr[0].results; _tweetsAC = new ArrayCollection(rawResults); } samples/json/parsing.mxml
  • 33. Result Formats & Authentication Parsing JSON Example App In Action
  • 34. Result Formats & Authentication Authentication Methods
  • 35. Result Formats & Authentication Authentication Methods Basic HTTP
  • 36. Result Formats & Authentication Authentication Methods Basic HTTP OpenID
  • 37. Result Formats & Authentication Authentication Methods Basic HTTP OpenID OAuth
  • 38. Result Formats & Authentication Authenticating The App Using ActionScript and OAuth protocol
  • 39. Result Formats & Authentication Authenticating The App Using ActionScript and OAuth protocol CodeRanger’s OAuth library
  • 40. Result Formats & Authentication Authenticating The App Using ActionScript and OAuth protocol CodeRanger’s OAuth library Sample App In Action samples/oauth
  • 41. Part 03 The “GroupieSize” Game App Let’s Build A Simple Game
  • 42. Let’s Build A Simple Game Game Concept
  • 43. Let’s Build A Simple Game Game Concept How Well Do You Know Currently Popular Musicians
  • 44. Let’s Build A Simple Game Game Concept How Well Do You Know Currently Popular Musicians An Adobe AIR Desktop Application
  • 45. Let’s Build A Simple Game Game Concept How Well Do You Know Currently Popular Musicians An Adobe AIR Desktop Application Uses Data Collected from Last.fm
  • 46. Let’s Build A Simple Game Core Codes Get random artists information samples/groupiesize/index.mxml
  • 47. Let’s Build A Simple Game Core Codes Get random artists information Get artists’ listeners count samples/groupiesize/index.mxml
  • 48. Let’s Build A Simple Game Core Codes Get random artists information Get artists’ listeners count Display question samples/groupiesize/index.mxml
  • 49. Let’s Build A Simple Game Core Codes Get random artists information Get artists’ listeners count Display question Display answer and artists’ information samples/groupiesize/index.mxml
  • 50. Let’s Build A Simple Game Core Codes Get random artists information Get artists’ listeners count Display question Display answer and artists’ information Record score samples/groupiesize/index.mxml
  • 52. Thank You Developing Social Apps Using Adobe AIR and Social Network API’s : AIR & API about.me/arisetyo