Thread

connect to a restful api

February 12, 2015 10:58pm

Subscribe [1]
  • #1 / Feb 12, 2015 10:58pm

    Elene

    1 posts

    I want to connect to webservices(Restful api). I install Rest.php and I load the rest library $autoload[‘libraries’] = array(‘rest’); after that i appel $config = array( ‘server’ => ‘url’, ‘api_name’ => ‘api_name’, ‘api_key’ => ‘api_key’, ); $this->rest->initialize($config); $data[‘test’] = $this->rest->get(‘controller/function’);

    the problem is with some service it post up : Dump => object(stdClass)#15 (2) { [“status”] => bool(false) [“error”] => string(15) “Unknown method.” } and with other service it work correctly please can you help me

ExpressionEngine News

#eecms, #events, #releases