API documentation
Services 3.x - API Documentation
Creating a REST Server with 2-Legged OAuth Authentication (Example with Java Servlet)
Apparently the way to get content from a Drupal site to another site/application is to use services. And also it would seem that using
Creating a resource for Services 3.x
We'll implement a simple service for notes that's exposed using the REST Server. Then we'll implement a simple JavaScript client for note
Services Installation and Setup
Installation is typical of any Drupal module. Services 3.x does have several dependencies you will need.
Testing Services with the node resource
After you have installed the Services module and created a service, you can test whether it is working by enabling a resource and retrieving
Testing resources
For the purposes of these tests, we will be using the user resource but these principles apply to any of the other resources as well.
- Bash script example for custom services action with session authentication
- Calling a REST Server using JSON with PHP
- Calling a REST server with Command Line cURL (login, create comment, logout)
- Communicating with a remote API, implemented as a Services 3.0 REST Resource
- Do user login with curl and the services 3.x module in Drupal 7
- Example REST server for node.create with session authentication (JSON & PHP cURL)
- Example XMLRPC POST for node.create
- Example XMLRPC POST for user.login
- Example XMLRPC POST for user.register
- Making authenticated requests to REST Server
- Services 3 - POST node.create with custom fields
- Services Sandbox. Testing resources on a test server.
- Testing OAuth
- Testing a three legged OAuth using Services 7.x-3.x XMLRPC
- Testing a three-legged and two-legged OAuth REST, using Services 7.x-3.2 and Oauth 7.x-3.0, with PHP Client
- Testing a two legged OAuth
- Testing with REST Server
Using the JSONP response formatter
Due to the same origin policy, it's difficult to communicate with servers on other domains using JavaScript. JSONP ("JSON with padding") is
Videos demonstrating the usage of services 3.x
Services intro video: http://www.youtube.com/watch?v=xv19Li5OaEg
What is and isn't working
Things are moving along nicely, but there are still some pretty big areas that are missing or busted.
Working with REST Server
This is a brief introduction to how the rest server works.