From a9ae47e7fe953d690967a2211f39256def92ab28 Mon Sep 17 00:00:00 2001 From: Chris Kacerguis Date: Sat, 16 Nov 2013 16:36:23 -0600 Subject: [PATCH] fixed docs, changed tag. --- README.md | 19 ++++++++++--------- spark.info | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6c4e93a..69a490d 100644 --- a/README.md +++ b/README.md @@ -14,23 +14,24 @@ Please take a look at the code to see about things like api_key() and other post ## Usage // Load the rest client spark - $this->load->spark('restclient/2.1.0'); + $this->load->spark('restclient/2.2.1'); // Load the library $this->load->library('rest'); - // Set config options + // Set config options (only 'server' is required to work) + $config = array('server' => 'https://example.com/', //'api_key' => 'Setec_Astronomy' //'api_name' => 'X-API-KEY' - 'http_user' => 'username', - 'http_pass' => 'password', - 'http_auth' => 'basic', - 'ssl_verify_peer' => TRUE, - 'ssl_cainfo' => '/certs/cert.pem')); + //'http_user' => 'username', + //'http_pass' => 'password', + //'http_auth' => 'basic', + //'ssl_verify_peer' => TRUE, + //'ssl_cainfo' => '/certs/cert.pem')); // Run some setup - $this->rest->initialize(array('server' => 'http://twitter.com/')); + $this->rest->initialize($config); // Pull in an array of tweets $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 - rhbecker (https://github.com/rhbecker) - János Rusiczki (https://github.com/kitsched) - David Genelid (https://github.com/junkie) -- Dmitry Serzhenko (https://github.com/serzhenko) +- Dmitry Serzhenko (https://github.com/serzhenko) -> Added PATCH support - Paul Yasi (https://github.com/paulyasi) -> SSL Peer Verification diff --git a/spark.info b/spark.info index 8686cbc..12c2d70 100644 --- a/spark.info +++ b/spark.info @@ -1,5 +1,5 @@ name: restclient -version: 2.2.0 +version: 2.2.1 compatibility: 2.0.0 dependencies: curl: 1.2.1 \ No newline at end of file