@@ -14,23 +14,24 @@ Please take a look at the code to see about things like api_key() and other post
14
14
## Usage
15
15
16
16
// Load the rest client spark
17
- $this->load->spark('restclient/2.1.0 ');
17
+ $this->load->spark('restclient/2.2.1 ');
18
18
19
19
// Load the library
20
20
$this->load->library('rest');
21
21
22
- // Set config options
22
+ // Set config options (only 'server' is required to work)
23
+
23
24
$config = array('server' => 'https://example.com/',
24
25
//'api_key' => 'Setec_Astronomy'
25
26
//'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'));
31
32
32
33
// Run some setup
33
- $this->rest->initialize(array('server' => 'http://twitter.com/') );
34
+ $this->rest->initialize($config );
34
35
35
36
// Pull in an array of tweets
36
37
$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
45
46
- rhbecker (https://github.com/rhbecker )
46
47
- János Rusiczki (https://github.com/kitsched )
47
48
- David Genelid (https://github.com/junkie )
48
- - Dmitry Serzhenko (https://github.com/serzhenko )
49
+ - Dmitry Serzhenko (https://github.com/serzhenko ) -> Added PATCH support
49
50
- Paul Yasi (https://github.com/paulyasi ) -> SSL Peer Verification
50
51
0 commit comments