Gandi.net Groups

Gandi API: Re: API Login Script

In topic: API Login Script

You should be logged in to post new messages. Create an account.

I have the same problem and support haven't replied to me either. I can
only assume there's some sort of "issue" with PHP or their test libs. 

Can ANYONE from support help us because it's slightly less than optimal
to have these groups and support if nobody can help.

On Feb, 22 2008 19:53 CET, Steve Lowe wrote:
Hi,
Not getting much help from support so I thought I would try this list
before I use another provider. Any help would be greatly appreciated.

I am using Win2003 server.
PHP 5.2.5
Apache: 2.0
XMLRPC from http://phpxmlrpc.sourceforge.net/ (version 2.2)

I have created my API account and received my password.

I have copied the sample code from https://api.ote.gandi.net/#login
and changed the details to my own.

You can view the error message here.
http://www.weddingevite.co.uk/test.php

I have been working on this for a week now and I have the XMLRPC
working
with other sites OK

Here is the exact PHP code in the page

*******************************
require_once("xmlrpc.inc");
$proxy  = new xmlrpc_client(" https://api.gandi.net/xmlrpc/");
$msg  = new xmlrpcmsg(
  "login",
  array(
  new xmlrpcval("SL2899-GANDI"),
        new xmlrpcval("dXnriiZq"),
        new xmlrpcval(True, "boolean"))
);

$reply  = $proxy->send($msg);
if ($reply->faultCode()) {
        echo "could not login because: " . $reply->faultString() .
        "\n";
        exit(67);
}
$session  = $reply->value();
**************************************