workhabitinc/drupal-ios-sdk — Issue #22: Authenticated calls
Author: jordiOS
Created: 2011-11-04 20:16:15+00:00
State: open

Hello,

Sorry if this is not the proper place to put this question,..

I've started using this library. Want to thank you for your amazing job in this project.

I have all nodes of my Drupal 7 accessible only to authenticated users. I'm able to connect and login using this sdk but I can't get the nodes because of an authentication issue.

I wonder if someone could help me with this pseudo-code so I can get nodes from my drupal installation via authenticated calls.

DiosConnect * session = [[DiosConnect alloc] init];

DiosUser * user = [[DiosUser alloc] initWithSession:session];

id response = [user loginWithUsername:@"admin" andPassword:@"myPassword"];

DiosNode * nodeController = [[DiosNode alloc] initWithSession:session];

id nodesList = [nodeController nodeGetIndex];

Thanks very much!!

Jordi