Monday, 15 February 2010

php - Phil Sturgeon Codeigniter Rest Client results -



php - Phil Sturgeon Codeigniter Rest Client results -

so trying utilize phil sturgeon's rest codeigniter client interface lob's printing api. getting have set in controller blank result. i've tried using twitters api same blank results.

if var_dump($result); $result api phone call such as: $result = $this->rest->get('addresses'); is: bool(false) both api's. controller set such:

<?php if ( ! defined('basepath')) exit('no direct script access allowed'); class mailing extends ci_controller { public function __construct() { parent::__construct(); $this->load->library('rest'); $config = array( 'server' => 'https://api.lob.com/v1/', 'api_key' => 'my_api_key', 'http_auth' => 'basic', ); $this->rest->initialize($config); } function show_addresses() { $result = $this->rest->get('addresses'); } }

i autoloaded curl since required library.

since happening more 1 api. i'm sure issue setup be?

php codeigniter rest curl

No comments:

Post a Comment