SlideShare une entreprise Scribd logo
1  sur  12
Native In No Time: Titanium
        Appcelerator
Session Two : HttpClient & REST APIs
Introduction
• Clearly Innovative Inc
• Aaron K. Saunders
• Titanium Appcelerator
Appcelerator
•   FREE – FREE – FREE
•   Cross-Platform with native controls
•   Extensible Module SDK
•   Appcelerator Cloud Services
Appcelerator Website – Helpful
                 Content
•   HttpClient
•   JSON.parse
•   JSON.stringify
•   XML.parse
Today You Get Data!!

• REST
• HTTPClient
• JSON
• XML
SOME CODE, More Details Later
WHAT THE REST?
APIs ARE EVERYWHERE
• Programmable Web
  – http://www.programmableweb.com/
  – List of vendors that provide APIs
  – Most of these APIs support REST
• Apigee developer console
  – https://apigee.com/providers
• Well Know Examples
  – Facebook, Foursquare, Yelp
API Authentication
• The two you will see most often
  – Basic authentication
     • Username and password base64Encoded
  – Oauth
     • Crazy back and forth between webserver and client.
     • Modules exists that do this for you, don’t try it yourself
        – http://bytespider.github.com/jsOAuth/
        – Good resource, I have used it a few times
REST API Basic Authenticaton Example
NEXT CLASS
• Email aaron@clearlyinnovative.com to let me
  know if every other week or every three
  weeks is better
• The next class will be on Appcelerator User
  Interface construction
LINKS
• https://developer.foursquare.com/overview/s
  amples
• http://www.yelp.com/developers/documentat
  ion
• http://bytespider.github.com/jsOAuth/
• http://docs.appcelerator.com/titanium/2.0/in
  dex.html#!/api/Titanium.Utils-method-
  base64encode

Contenu connexe

Plus de Aaron Saunders

StackMob & Appcelerator Module Part One
StackMob & Appcelerator Module Part OneStackMob & Appcelerator Module Part One
StackMob & Appcelerator Module Part One
Aaron Saunders
 
Modeveast Appcelerator Presentation
Modeveast Appcelerator PresentationModeveast Appcelerator Presentation
Modeveast Appcelerator Presentation
Aaron Saunders
 

Plus de Aaron Saunders (9)

Simple Unit Testing in Appcelerator Titanium Alloy
Simple Unit Testing in Appcelerator Titanium AlloySimple Unit Testing in Appcelerator Titanium Alloy
Simple Unit Testing in Appcelerator Titanium Alloy
 
DC Titanium User Group Meetup: Appcelerator Titanium Alloy jan2013
DC Titanium User Group Meetup: Appcelerator Titanium Alloy jan2013DC Titanium User Group Meetup: Appcelerator Titanium Alloy jan2013
DC Titanium User Group Meetup: Appcelerator Titanium Alloy jan2013
 
modeveast 2012 Appcelerator Alloy & Cloud Services Presentation
modeveast 2012 Appcelerator Alloy & Cloud Services Presentationmodeveast 2012 Appcelerator Alloy & Cloud Services Presentation
modeveast 2012 Appcelerator Alloy & Cloud Services Presentation
 
Introduction to Module Development with Appcelerator Titanium
Introduction to Module Development with Appcelerator TitaniumIntroduction to Module Development with Appcelerator Titanium
Introduction to Module Development with Appcelerator Titanium
 
Alloy Simple App Demonstration
Alloy Simple App DemonstrationAlloy Simple App Demonstration
Alloy Simple App Demonstration
 
Clearly Innovative Inc Capabilities
Clearly Innovative Inc CapabilitiesClearly Innovative Inc Capabilities
Clearly Innovative Inc Capabilities
 
PaaS + Appcelerator = WIN
PaaS + Appcelerator = WINPaaS + Appcelerator = WIN
PaaS + Appcelerator = WIN
 
StackMob & Appcelerator Module Part One
StackMob & Appcelerator Module Part OneStackMob & Appcelerator Module Part One
StackMob & Appcelerator Module Part One
 
Modeveast Appcelerator Presentation
Modeveast Appcelerator PresentationModeveast Appcelerator Presentation
Modeveast Appcelerator Presentation
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Dernier (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

Skillshare Native In No Time : Appcelerator Introduction

  • 1. Native In No Time: Titanium Appcelerator Session Two : HttpClient & REST APIs
  • 2. Introduction • Clearly Innovative Inc • Aaron K. Saunders • Titanium Appcelerator
  • 3. Appcelerator • FREE – FREE – FREE • Cross-Platform with native controls • Extensible Module SDK • Appcelerator Cloud Services
  • 4. Appcelerator Website – Helpful Content • HttpClient • JSON.parse • JSON.stringify • XML.parse
  • 5. Today You Get Data!! • REST • HTTPClient • JSON • XML
  • 6. SOME CODE, More Details Later
  • 8. APIs ARE EVERYWHERE • Programmable Web – http://www.programmableweb.com/ – List of vendors that provide APIs – Most of these APIs support REST • Apigee developer console – https://apigee.com/providers • Well Know Examples – Facebook, Foursquare, Yelp
  • 9. API Authentication • The two you will see most often – Basic authentication • Username and password base64Encoded – Oauth • Crazy back and forth between webserver and client. • Modules exists that do this for you, don’t try it yourself – http://bytespider.github.com/jsOAuth/ – Good resource, I have used it a few times
  • 10. REST API Basic Authenticaton Example
  • 11. NEXT CLASS • Email aaron@clearlyinnovative.com to let me know if every other week or every three weeks is better • The next class will be on Appcelerator User Interface construction
  • 12. LINKS • https://developer.foursquare.com/overview/s amples • http://www.yelp.com/developers/documentat ion • http://bytespider.github.com/jsOAuth/ • http://docs.appcelerator.com/titanium/2.0/in dex.html#!/api/Titanium.Utils-method- base64encode