Welcome Guest, Not a member yet? Register   Sign In
IPBoard 3.1.3 nad Codeigniter 1.7.2 - Integration XML-RPC problem!
#1

[eluser]Radiart[/eluser]
Hi Everyone

I trying to use XML-RPC API to connect my website Code Igniter 1.7.2 with IPBoard 3.1.3

In IPBoard I doing this steps:

Quote:1. Enable XML-RPC API System - System / System Settings / Advanced / XML-RPC API and update
2. Create a user API - Admin CP --> System --> API Users

On my website I use framework Codeigniter 1.7.2 and this is my code to call XML-RPC API:

Code:
function test() {      

                $this->load->library('xmlrpc');

                $this->xmlrpc->server('http://localhost/break/board/interface/board/index.php', 80);
                $this->xmlrpc->method('fetchStats');
                $request = array('37ff66a5c5c5c63a69395c4655b060fd', 'ipb');
                $this->xmlrpc->request($request);

                if ( ! $this->xmlrpc->send_request()) { echo $this->xmlrpc->display_error(); }
                                
        }

But when I try to connect to adress: my_forum_name/interface/board/index.php

I have error like this:


Quote:IP.Board could not locate an API module called ''


It's looks like error is because there was no 'api_module' defined but I send it with my request

I trying change $request, but it dosen't help:

Code:
$request = array(api_key['37ff66a5c5c5c63a69395c4655b060fd'], api_module['ipb']);
Code:
$request = array('api_key' => '37ff66a5c5c5c63a69395c4655b060fd', 'api_module' => 'ipb');
Code:
$request = array(
                        array('37ff66a5c5c5c63a69395c4655b060fd', 'string'),
                        array('ipb.ibp', 'string')
                        );

Do U know what I can do wrong?
#2

[eluser]Radiart[/eluser]
This the Method I call

Code:
$ALLOWED_METHODS['fetchStats'] = array(
                                                   'in'  => array(
                                                                    'api_key'           => 'string',
                                                                    'api_module'        => 'string',
                                                                 ),
                                                   'out' => array(
                                                                    'response' => 'xmlrpc'
                                                                 )
                                                 );
#3

[eluser]Radiart[/eluser]
???
#4

[eluser]Unknown[/eluser]
Change request to:

Code:
$request = array(array(array('api_key'=>'37ff66a5c5c5c63a69395c4655b060fd', 'api_module'=>'ipb'), 'struct'));




Theme © iAndrew 2016 - Forum software by © MyBB