Skip to content

Commit

Permalink
Added Logo + Fetch Monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
athuler committed Sep 3, 2023
1 parent 4fb43ec commit dbb4ad0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
Binary file added Media/Clockify to iCal Animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Media/Clockify to ical Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Media/Logo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion view.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// Initialization
header("Content-Type: text/calendar;charset=utf-8");
$curl = curl_init();
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

if(!isset($_GET["key"])) {
exit("ERROR - Missing API Key");
Expand All @@ -19,11 +20,24 @@
$icalobj = new ZCiCal();


// Track Usage
curl_setopt_array($curl, [
CURLOPT_URL => "https://ihook.us/receivers/be2ed27bee1f45caa875dcb1523d3ff6",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);


// Get User's ID and Workspace ID

$url = "https://api.clockify.me/api/v1/user";

curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

curl_setopt_array($curl, [
CURLOPT_URL => $url,
Expand Down

0 comments on commit dbb4ad0

Please sign in to comment.