Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

Commit

Permalink
fixed docs, changed tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Kacerguis committed Nov 16, 2013
1 parent d0a716f commit a9ae47e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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

2 changes: 1 addition & 1 deletion spark.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: restclient
version: 2.2.0
version: 2.2.1
compatibility: 2.0.0
dependencies:
curl: 1.2.1

0 comments on commit a9ae47e

Please sign in to comment.