Introduction to using Titanium with Drupal Services Stephen Barker, - - PowerPoint PPT Presentation

introduction to using titanium with drupal services
SMART_READER_LITE
LIVE PREVIEW

Introduction to using Titanium with Drupal Services Stephen Barker, - - PowerPoint PPT Presentation

Introduction to using Titanium with Drupal Services Stephen Barker, Digital Frontiers Media @digitalfrontier Friday, February 10, 2012 1 Web Services Overview iOS or Android app sends data (or request for data) to a website Friday,


slide-1
SLIDE 1

Introduction to using Titanium with Drupal Services

Stephen Barker, Digital Frontiers Media

@digitalfrontier

1 Friday, February 10, 2012

slide-2
SLIDE 2

Web Services Overview

iOS or Android app sends data (or request for data) to a website

2 Friday, February 10, 2012

slide-3
SLIDE 3

Web Services Overview (cont.)

Responses are returned along with any requested data (if correctly requested)

3 Friday, February 10, 2012

slide-4
SLIDE 4

Web Services Overview (cont.)

Responses are returned along with any requested data (if correctly requested)

4 Friday, February 10, 2012

slide-5
SLIDE 5

Drupal Services Solution

5 Friday, February 10, 2012

slide-6
SLIDE 6

Drupal Services

Drupal.org/project/services

6 Friday, February 10, 2012

slide-7
SLIDE 7

Services Module Suite

Services API Module Services Server Modules JSON, XML-RPC, etc. Services Authentication Session Authentication Key Authentication Services Modules System Services Node Services Views Services User Services many others...

7 Friday, February 10, 2012

slide-8
SLIDE 8

Enable Modules

8 Friday, February 10, 2012

slide-9
SLIDE 9

Create Service Endpoint

9 Friday, February 10, 2012

slide-10
SLIDE 10

Create Service Endpoint (cont.)

<--Machine name for service <--Server/data type <--URL path endpoint for service

10 Friday, February 10, 2012

slide-11
SLIDE 11

Enable Service Resources

11 Friday, February 10, 2012

slide-12
SLIDE 12

Enable Service Resources (cont.)

12 Friday, February 10, 2012

slide-13
SLIDE 13

Test Service Endpoint

<--Good sign

13 Friday, February 10, 2012

slide-14
SLIDE 14

Set Appropriate Permissions

Since we’re not doing Services Authentication in this demo, we have to allow “anonymous” to perform actions we’re providing service resources for.

14 Friday, February 10, 2012

slide-15
SLIDE 15

Titanium Studio

Appcelerator.com

15 Friday, February 10, 2012

slide-16
SLIDE 16

Public Demo GIST

https://github.com/DigitalFrontiersMedia/Drupal- Services---Titanium-Example/tree/master/dsts

16 Friday, February 10, 2012

slide-17
SLIDE 17

Add Some User Inputs to App

17 Friday, February 10, 2012

slide-18
SLIDE 18

Setup node.create Button & EventListener

<--Setup Button <--Change to your Service Endpoint <--Example XMLRPC data structure available at http://drupal.org/node/1304802 <--Setup EventListener

18 Friday, February 10, 2012

slide-19
SLIDE 19

Include data in methodCall from User Input

<--Value from UI input

19 Friday, February 10, 2012

slide-20
SLIDE 20

Setup Feedback Function & Send the Request

<--Value from UI input <--Provide feedback <--Send the data/request

20 Friday, February 10, 2012

slide-21
SLIDE 21

Setup node.retrieve Button & EventListener

<--Setup Button <--Change to your Service Endpoint <--Setup EventListener <--Value from UI input

21 Friday, February 10, 2012

slide-22
SLIDE 22

Setup Feedback Function & Send the Request

<--Provide feedback <--Send the data/request <--Start parsing response from Service

22 Friday, February 10, 2012

slide-23
SLIDE 23

Stephen Barker, Digital Frontiers Media

http://digitalfrontiersmedia.com stephen@digitalfrontiersmedia.com @digitalfrontier

23 Friday, February 10, 2012