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

Commit a9ae47e

Browse files
fixed docs, changed tag.
1 parent d0a716f commit a9ae47e

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

spark.info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: restclient
2-
version: 2.2.0
2+
version: 2.2.1
33
compatibility: 2.0.0
44
dependencies:
55
curl: 1.2.1

0 commit comments

Comments
 (0)