SlideShare a Scribd company logo
Drupal + iPhone = AWESOME Silicon Valley Code Camp October 2009 Eneko Alonso ealonso@level-studios.com
Eneko Alonso I am a Software Engineer and UI Developer, currently working at Level Studios ealonso@level-studios.com www.level-studios.com www.enekoalonso.com Eneko Alonso ealonso@level-studios.com
DRUPAL Eneko Alonso ealonso@level-studios.com
Drupal: what is it? Content Management System Community (user management, roles, permissions) Base for great web applications Check out www.drupal.org Eneko Alonso ealonso@level-studios.com
iPhone Eneko Alonso ealonso@level-studios.com
iPhone: whatis it? Eneko Alonso ealonso@level-studios.com
Drupal + iPhoneWhy? Eneko Alonso ealonso@level-studios.com
Drupal+iPhone: why? Let your users access your site on the go But also, great for administration Eneko Alonso ealonso@level-studios.com
Setup: what do we need? Eneko Alonso ealonso@level-studios.com
Drupal: what we need Drupal site: [X]AMP Server (PHP, Apache, MYSQL) Drupal distribution (6.14 in this demo) JSON API: Services Module JSON Server Module Eneko Alonso ealonso@level-studios.com
iPhone: what we need XCode with iPhone SDK (3.0 on this demo) TouchJSON library http://developer.apple.com/iphone/ http://code.google.com/p/touchcode/wiki/TouchJSON Eneko Alonso ealonso@level-studios.com
iPhone: what we don’t need iPhone Developer License* * Needed only to put your app in your iPhone for testing. http://developer.apple.com/iphone/ http://code.google.com/p/touchcode/wiki/TouchJSON Eneko Alonso ealonso@level-studios.com
Setup Eneko Alonso ealonso@level-studios.com
Create a user account on the site: http://[server_ip]/user/register Write a new story: http://[server_ip]/node/add/story On XCode 3.1, create a new iPhone project Demo Setup Eneko Alonso ealonso@level-studios.com
Drupal Setup Create DB: CREATE DATABASE drupal_iphone_demo; Download drupal: wget http://drupal.org/… Install drupal(browse to your server url) Install and enable modules (Services) Configure user permissions Eneko Alonso ealonso@level-studios.com
iPhone Setup Create new Project Add JSON library to project (TouchJSON) Add a button to the view Add a method for system.connect Execute server request and show data on console Eneko Alonso ealonso@level-studios.com
API Calls Eneko Alonso ealonso@level-studios.com
system.connect Initiates user session Server returns valid sessionId for login Eneko Alonso ealonso@level-studios.com
user.login Logs user into Drupal Same user permissions as on the site Eneko Alonso ealonso@level-studios.com
node.get Retrieves a full node from the server Eneko Alonso ealonso@level-studios.com
node.save Saves changes or creates a new node Eneko Alonso ealonso@level-studios.com
views.get Collection of nodes (great for table views) Eneko Alonso ealonso@level-studios.com
Creating custom services Eneko Alonso ealonso@level-studios.com
myservice.hello Let’s create a ‘Hello world’ service Eneko Alonso ealonso@level-studios.com

More Related Content

Similar to SVCC Drupal+iPhone

Starting mobile development
Starting mobile developmentStarting mobile development
Starting mobile development
Mihai Corlan
 
Transform your Intranet with Drupal and Alfresco - by Optaros
Transform your Intranet with Drupal and Alfresco - by OptarosTransform your Intranet with Drupal and Alfresco - by Optaros
Transform your Intranet with Drupal and Alfresco - by Optaros
Alfresco Software
 
Migrating a Vignette Website to Drupal: Story of Multnomah County
Migrating a Vignette Website to Drupal: Story of Multnomah CountyMigrating a Vignette Website to Drupal: Story of Multnomah County
Migrating a Vignette Website to Drupal: Story of Multnomah County
Acquia
 
Enterprise software needs a PaaS
Enterprise software needs a PaaSEnterprise software needs a PaaS
Enterprise software needs a PaaShmalphettes
 
Intalio create and cloudfoudry - short
Intalio create and cloudfoudry - shortIntalio create and cloudfoudry - short
Intalio create and cloudfoudry - shorthmalphettes
 
The Power of Drupal and Alfresco Together
The Power of Drupal and Alfresco TogetherThe Power of Drupal and Alfresco Together
The Power of Drupal and Alfresco Together
Jeff Potts
 
Cordova + Ionic + MobileFirst
Cordova + Ionic + MobileFirstCordova + Ionic + MobileFirst
Cordova + Ionic + MobileFirst
Raymond Camden
 
Enable Mobile Apps Designer in OBIEE
Enable Mobile Apps Designer in OBIEEEnable Mobile Apps Designer in OBIEE
Enable Mobile Apps Designer in OBIEE
Osama Mustafa
 
Soirée Flex/RIA au Nantes jug
Soirée Flex/RIA au Nantes jugSoirée Flex/RIA au Nantes jug
Soirée Flex/RIA au Nantes jug
François Le Droff
 
Introduction to Cordova
Introduction to CordovaIntroduction to Cordova
Introduction to Cordova
Raymond Camden
 
From Desktop to Mobile: Application Functionality for Small Screens
From Desktop to Mobile: Application Functionality for Small ScreensFrom Desktop to Mobile: Application Functionality for Small Screens
From Desktop to Mobile: Application Functionality for Small ScreensJoseph Labrecque
 
Reasons for Flash: Flash Development in an HTML5 and App Store World
Reasons for Flash: Flash Development in an HTML5 and App Store WorldReasons for Flash: Flash Development in an HTML5 and App Store World
Reasons for Flash: Flash Development in an HTML5 and App Store World
EffectiveUI
 
An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018
An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018
An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018
Amazon Web Services
 
An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018
An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018
An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018
Amazon Web Services
 
Beyond Responsive Web Design - Moving your web agency to mobile development (...
Beyond Responsive Web Design - Moving your web agency to mobile development (...Beyond Responsive Web Design - Moving your web agency to mobile development (...
Beyond Responsive Web Design - Moving your web agency to mobile development (...
craigharmonic
 
Udi Google Dev Day
Udi Google Dev DayUdi Google Dev Day
Udi Google Dev DayUdi Bauman
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginners
Clement Levallois
 
Getting started with flash mobile development
Getting started with flash mobile developmentGetting started with flash mobile development
Getting started with flash mobile developmentMihai Corlan
 
Oracle china campus recruitment ben xu
Oracle china campus recruitment ben xuOracle china campus recruitment ben xu
Oracle china campus recruitment ben xu
Ben Xu
 
Expo - Zero to App.pptx
Expo - Zero to App.pptxExpo - Zero to App.pptx
Expo - Zero to App.pptx
😎 Anthony Kariuki
 

Similar to SVCC Drupal+iPhone (20)

Starting mobile development
Starting mobile developmentStarting mobile development
Starting mobile development
 
Transform your Intranet with Drupal and Alfresco - by Optaros
Transform your Intranet with Drupal and Alfresco - by OptarosTransform your Intranet with Drupal and Alfresco - by Optaros
Transform your Intranet with Drupal and Alfresco - by Optaros
 
Migrating a Vignette Website to Drupal: Story of Multnomah County
Migrating a Vignette Website to Drupal: Story of Multnomah CountyMigrating a Vignette Website to Drupal: Story of Multnomah County
Migrating a Vignette Website to Drupal: Story of Multnomah County
 
Enterprise software needs a PaaS
Enterprise software needs a PaaSEnterprise software needs a PaaS
Enterprise software needs a PaaS
 
Intalio create and cloudfoudry - short
Intalio create and cloudfoudry - shortIntalio create and cloudfoudry - short
Intalio create and cloudfoudry - short
 
The Power of Drupal and Alfresco Together
The Power of Drupal and Alfresco TogetherThe Power of Drupal and Alfresco Together
The Power of Drupal and Alfresco Together
 
Cordova + Ionic + MobileFirst
Cordova + Ionic + MobileFirstCordova + Ionic + MobileFirst
Cordova + Ionic + MobileFirst
 
Enable Mobile Apps Designer in OBIEE
Enable Mobile Apps Designer in OBIEEEnable Mobile Apps Designer in OBIEE
Enable Mobile Apps Designer in OBIEE
 
Soirée Flex/RIA au Nantes jug
Soirée Flex/RIA au Nantes jugSoirée Flex/RIA au Nantes jug
Soirée Flex/RIA au Nantes jug
 
Introduction to Cordova
Introduction to CordovaIntroduction to Cordova
Introduction to Cordova
 
From Desktop to Mobile: Application Functionality for Small Screens
From Desktop to Mobile: Application Functionality for Small ScreensFrom Desktop to Mobile: Application Functionality for Small Screens
From Desktop to Mobile: Application Functionality for Small Screens
 
Reasons for Flash: Flash Development in an HTML5 and App Store World
Reasons for Flash: Flash Development in an HTML5 and App Store WorldReasons for Flash: Flash Development in an HTML5 and App Store World
Reasons for Flash: Flash Development in an HTML5 and App Store World
 
An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018
An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018
An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018
 
An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018
An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018
An Introduction to AWS for Developers: AWS Developer Workshop - Web Summit 2018
 
Beyond Responsive Web Design - Moving your web agency to mobile development (...
Beyond Responsive Web Design - Moving your web agency to mobile development (...Beyond Responsive Web Design - Moving your web agency to mobile development (...
Beyond Responsive Web Design - Moving your web agency to mobile development (...
 
Udi Google Dev Day
Udi Google Dev DayUdi Google Dev Day
Udi Google Dev Day
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginners
 
Getting started with flash mobile development
Getting started with flash mobile developmentGetting started with flash mobile development
Getting started with flash mobile development
 
Oracle china campus recruitment ben xu
Oracle china campus recruitment ben xuOracle china campus recruitment ben xu
Oracle china campus recruitment ben xu
 
Expo - Zero to App.pptx
Expo - Zero to App.pptxExpo - Zero to App.pptx
Expo - Zero to App.pptx
 

Recently uploaded

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 

Recently uploaded (20)

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 

SVCC Drupal+iPhone

  • 1. Drupal + iPhone = AWESOME Silicon Valley Code Camp October 2009 Eneko Alonso ealonso@level-studios.com
  • 2. Eneko Alonso I am a Software Engineer and UI Developer, currently working at Level Studios ealonso@level-studios.com www.level-studios.com www.enekoalonso.com Eneko Alonso ealonso@level-studios.com
  • 3. DRUPAL Eneko Alonso ealonso@level-studios.com
  • 4. Drupal: what is it? Content Management System Community (user management, roles, permissions) Base for great web applications Check out www.drupal.org Eneko Alonso ealonso@level-studios.com
  • 5. iPhone Eneko Alonso ealonso@level-studios.com
  • 6. iPhone: whatis it? Eneko Alonso ealonso@level-studios.com
  • 7. Drupal + iPhoneWhy? Eneko Alonso ealonso@level-studios.com
  • 8. Drupal+iPhone: why? Let your users access your site on the go But also, great for administration Eneko Alonso ealonso@level-studios.com
  • 9. Setup: what do we need? Eneko Alonso ealonso@level-studios.com
  • 10. Drupal: what we need Drupal site: [X]AMP Server (PHP, Apache, MYSQL) Drupal distribution (6.14 in this demo) JSON API: Services Module JSON Server Module Eneko Alonso ealonso@level-studios.com
  • 11. iPhone: what we need XCode with iPhone SDK (3.0 on this demo) TouchJSON library http://developer.apple.com/iphone/ http://code.google.com/p/touchcode/wiki/TouchJSON Eneko Alonso ealonso@level-studios.com
  • 12. iPhone: what we don’t need iPhone Developer License* * Needed only to put your app in your iPhone for testing. http://developer.apple.com/iphone/ http://code.google.com/p/touchcode/wiki/TouchJSON Eneko Alonso ealonso@level-studios.com
  • 13. Setup Eneko Alonso ealonso@level-studios.com
  • 14. Create a user account on the site: http://[server_ip]/user/register Write a new story: http://[server_ip]/node/add/story On XCode 3.1, create a new iPhone project Demo Setup Eneko Alonso ealonso@level-studios.com
  • 15. Drupal Setup Create DB: CREATE DATABASE drupal_iphone_demo; Download drupal: wget http://drupal.org/… Install drupal(browse to your server url) Install and enable modules (Services) Configure user permissions Eneko Alonso ealonso@level-studios.com
  • 16. iPhone Setup Create new Project Add JSON library to project (TouchJSON) Add a button to the view Add a method for system.connect Execute server request and show data on console Eneko Alonso ealonso@level-studios.com
  • 17. API Calls Eneko Alonso ealonso@level-studios.com
  • 18. system.connect Initiates user session Server returns valid sessionId for login Eneko Alonso ealonso@level-studios.com
  • 19. user.login Logs user into Drupal Same user permissions as on the site Eneko Alonso ealonso@level-studios.com
  • 20. node.get Retrieves a full node from the server Eneko Alonso ealonso@level-studios.com
  • 21. node.save Saves changes or creates a new node Eneko Alonso ealonso@level-studios.com
  • 22. views.get Collection of nodes (great for table views) Eneko Alonso ealonso@level-studios.com
  • 23. Creating custom services Eneko Alonso ealonso@level-studios.com
  • 24. myservice.hello Let’s create a ‘Hello world’ service Eneko Alonso ealonso@level-studios.com