We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2a4625 commit af13057Copy full SHA for af13057
config
@@ -0,0 +1,15 @@
1
+ $url = "http://test.hiskenya.org/api/users.json?paging=false";
2
+ $username = "bootcamp2016";
3
+ $password = "Bootcamp2016";
4
+ $ch = curl_init($url);
5
+
6
+ curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");
7
+ curl_setopt($ch, CURLOPT_TIMEOUT, 30);
8
+ curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,30);
9
10
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
11
12
+ $data = curl_exec($ch);
13
+ curl_close($ch);
14
15
+ $result = json_decode($data, true);
0 commit comments