[support] Create api for interface with an application
Davide Michel 'ZioBudda' Morelli
michel at ziobudda.net
Mon Feb 11 11:19:01 UTC 2008
Hi all. I need to create a simil-gateway from Drupal to application X
and from application X to Drupal.
In other words I have an application (an ecommerce) and I want to
interact in double-way (Drupal to ecomm and ecomm to Drupal) with it.
For example: ecommerce's users are the drupal'user so I need to write an
api (called from ecommerce) that get the user information, make login,
make logout, etc etc.
I have tried to create and call (via browser, after a login in Drupal) a
file like this:
<?php
include_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
print_r($user);
?>
but the result is that the "uid" is 0. Why ?
Does anyone can give me some type of RTFM ?
M.
--
Michel 'ZioBudda' Morelli michel at ziobudda.net
Consulenza sistemistica in ambito OpenSource
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
http://www.ziobudda.net ICQ: 58351764
http://www.ziobuddalabs.it Skype: zio_budda
http://www.ajaxblog.it MSN: michel at ziobuddalabs.it
JABBER: michel at gmail.com
More information about the support
mailing list