Skip to content

Commit af13057

Browse files
committed
Configuration file
1 parent f2a4625 commit af13057

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

config

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

Comments
 (0)