Lets make Drupal grow

2 days of über Drupal geeking in the heart of copenhagen

Vesterbrogade 24
1620 København V
+45 88 300 123


Recent comments

Hugo Wetterberg 5.05.09

Twitter DIY - Services with REST & OAuth

Abstract: 

Implementing a twitter clone. A introduction to Services using the REST server and the OAuth authentication module.

Agenda: 
  • Introduction to REST
  • Introduction to OAuth
  • Setting up privileges and authentication levels
  • Writing a service using the services_oop helper module
    ** CRUD operations
    ** Models and views
    ** Relationships, actions and targeted actions
    ** Using the query builder helper module
  • Writing a client in PHP
    ** CRUD operations
    ** File upload
  • Writing a client in Adobe Flex
  • Wrap-up
Goals: 

Giving the attendants a working knowledge of how to work with services and the new REST server and OAuth authentication module.

Resources: 

Customized services:
Just OAuth (pluggable authentication support): http://github.com/hugowetterberg/services/tree/oauth
OAuth+REST (resource-based services support): http://github.com/hugowetterberg/services/tree/oauth-rest

OAuth implementation:
http://github.com/hugowetterberg/services_oauth/tree/master

REST server:
http://github.com/hugowetterberg/rest_server/tree/master

There is a utility module for defining resource-based services using classes too:
http://github.com/hugowetterberg/services_oop/tree/master

Along with a query builder module to make the implementation resource index listings easier:
http://github.com/hugowetterberg/query_builder/tree/master