diff --git a/README.md b/README.md index 3d173ba..5337737 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ [Cronofy](https://www.cronofy.com) - one API for all the calendars (Google, iCloud, Exchange, Office 365, Outlook.com) +## Sample Application + +To see this API wrapper in action see our sample app [here](https://github.com/cronofy/cronofy-php-sample-app) + ## Usage In order to use the Cronofy API you will need to [create a developer account](https://app.cronofy.com/sign_up/new). diff --git a/cronofy-oauthcallback.php b/cronofy-oauthcallback.php deleted file mode 100644 index ab9847a..0000000 --- a/cronofy-oauthcallback.php +++ /dev/null @@ -1,33 +0,0 @@ - $redirect_uri, - 'code' => $code -); - -$cronofy = new Cronofy($client_id, $client_secret); - -$token=$cronofy->request_token($client_id, $client_secret, $params); - -if($token != true){ - echo $token; -}else{ - $_SESSION['access_token'] = $cronofy->access_token; - $_SESSION['refresh_token'] = $cronofy->refresh_token; -} - -header('Location: ' . $data_uri); - -?> - diff --git a/cronofy-test.php b/cronofy-test.php deleted file mode 100644 index d9a73b4..0000000 --- a/cronofy-test.php +++ /dev/null @@ -1,16 +0,0 @@ - $redirect_uri, - 'scope' => array('read_account','list_calendars','read_events','create_event','delete_event') -); -$auth = $cronofy->getAuthorizationURL($client_id, $params); - -var_dump($auth); -?> diff --git a/cronofy-test2.php b/cronofy-test2.php deleted file mode 100644 index c9c57bc..0000000 --- a/cronofy-test2.php +++ /dev/null @@ -1,46 +0,0 @@ -revoke_authorization($client_id, $client_secret, $access_token); - -//$calendar = $cronofy->list_calendars(); - -/*$params = array( - 'tzid' => 'Europe/London', -); -$events = $cronofy->read_events($params); -var_dump($events); -*/ -/*$params = array( - 'calendar_id' => 'cal_VmTnwPV9On8LACpZ_nI0xvz0g0hmyKHvKpxAWYA', - 'event_id' => 'event_test_12345679', - 'summary' => 'test event 2', - 'description' => 'some event data here', - 'start' => '2015-12-07T09:00:00Z', - 'end' => '2015-12-08T10:00:00Z' - -); -$new_event = $cronofy->upsert_event($params); - -var_dump($new_event); -*/ - -/*$params = array( - 'calendar_id' => 'cal_VmTnwPV9On8LACpZ_nI0xvz0g0hmyKHvKpxAWYA', - 'event_id' => 'evt_external_566561a8e7d68f801b8e8912' -); - -$delete = $cronofy->delete_event($params); - -var_dump($delete); -*/ -?> \ No newline at end of file diff --git a/cronofy-usercreds.php b/cronofy-usercreds.php deleted file mode 100644 index c605032..0000000 --- a/cronofy-usercreds.php +++ /dev/null @@ -1,8 +0,0 @@ -'; -$client_secret = ''; - -$redirect_uri = "/cronofy-oauthcallback.php"; -$data_uri = ""; - -?> \ No newline at end of file