Permalink
Browse files

added notes about extra http headers

  • Loading branch information...
1 parent ae1788d commit a170a79dce8c7b881b378432f4df90926b5bfe71 @jhirbour jhirbour committed Jan 4, 2013
Showing with 16 additions and 0 deletions.
  1. +16 −0 README.textile
View
@@ -59,3 +59,19 @@ class Song extends ActiveResource {
var $extra_params = '?key=123456789';
}
</pre>
+
+h2. Extra Http Headers
+
+If you need to add extra http request headers you can set
+
+<pre>
+<?php
+
+require_once ('ActiveResource.php');
+
+class Song extends ActiveResource {
+ var $site = 'http://localhost:3000/';
+ var $element_name = 'songs';
+ var $request_headers = array("x-api-key: some-api-key-here");
+}
+</pre>

0 comments on commit a170a79

Please sign in to comment.