@@ -14,23 +14,24 @@ Please take a look at the code to see about things like api_key() and other post
1414## Usage
1515
1616 // Load the rest client spark
17- $this->load->spark('restclient/2.1.0 ');
17+ $this->load->spark('restclient/2.2.1 ');
1818
1919 // Load the library
2020 $this->load->library('rest');
2121
22- // Set config options
22+ // Set config options (only 'server' is required to work)
23+
2324 $config = array('server' => 'https://example.com/',
2425 //'api_key' => 'Setec_Astronomy'
2526 //'api_name' => 'X-API-KEY'
26- 'http_user' => 'username',
27- 'http_pass' => 'password',
28- 'http_auth' => 'basic',
29- 'ssl_verify_peer' => TRUE,
30- 'ssl_cainfo' => '/certs/cert.pem'));
27+ // 'http_user' => 'username',
28+ // 'http_pass' => 'password',
29+ // 'http_auth' => 'basic',
30+ // 'ssl_verify_peer' => TRUE,
31+ // 'ssl_cainfo' => '/certs/cert.pem'));
3132
3233 // Run some setup
33- $this->rest->initialize(array('server' => 'http://twitter.com/') );
34+ $this->rest->initialize($config );
3435
3536 // Pull in an array of tweets
3637 $tweets = $this->rest->get('statuses/user_timeline/'.$username.'.xml');
@@ -45,6 +46,6 @@ CodeIgniter Rest Client was origionally written by the awesome Phil Sturgeon, Th
4546- rhbecker (https://github.com/rhbecker )
4647- János Rusiczki (https://github.com/kitsched )
4748- David Genelid (https://github.com/junkie )
48- - Dmitry Serzhenko (https://github.com/serzhenko )
49+ - Dmitry Serzhenko (https://github.com/serzhenko ) -> Added PATCH support
4950- Paul Yasi (https://github.com/paulyasi ) -> SSL Peer Verification
5051
0 commit comments