json

Drupal Web Services + Json Server + Cake PHP - Part 3

So, here we are going to create a Cake PHP Controller without a Model.
This Controller will perform Calls to a Drupal Web Service as you saw in the previous Articles, the Call will return a Drupal User Object in Json format.

1 - Create your Controller:

<?php
class WilsolutionsServices Controller extends AppController {

var $uses = array();
var $components = array('RequestHandler', 'Session');

private $api_key = '1641795f7716f5d5a93388aa0843ae3d';

function getUser() {
$args = array(
'method'=>'wilsolutions_user.get',

Drupal Web Services + Json Server + Cake PHP - Part 2

Hello there, to this Article I am considering that you have already setup your Drupal Services, Json Server and already have a beautiful Cake PHP running...
So, let's code:

1 - Created a Module:
- Folder: wilsolutions_service
- Files: wilsolutions_service.info and wilsolutions_service.module

1.1 - Info file wilsolutions_service.info:

;$Id$
name = "Wilsolutions Service"
description = "Provides services to interact with Users Object."
core = 6.x
dependencies[] = services

1.2 - Module file wilsolutions_service.module:

Drupal Web Services - Using SOA to solve applications integrations problems. Part 1

Nowadays there's a huge need to integrate applications, systems, people... =D well people integration is other subject related to Social Networks hehehe

As part of an integration, my client requested to develop a Cake PHP application and this application needed to interact with Drupal.
Well, we are talking about the apps here, different Sessions and Domains...

At glance I was poking around with Drake http://drupal.org/projects/drake a module that dispatcher a Cake PHP app into Drupal,

Syndicate content