diff --git a/src/Citrix/Authentication/Direct.php b/src/Citrix/Authentication/Direct.php index 3647105..108ae76 100644 --- a/src/Citrix/Authentication/Direct.php +++ b/src/Citrix/Authentication/Direct.php @@ -27,7 +27,7 @@ class Direct extends ServiceAbstract implements CitrixApiAware * Authentication URL * @var String */ - private $authorizeUrl = 'https://api.citrixonline.com/oauth/access_token'; + private $authorizeUrl = 'https://api.getgo.com/oauth/access_token'; /** * API key or Secret Key in Citrix's Developer Portal diff --git a/src/Citrix/GoToWebinar.php b/src/Citrix/GoToWebinar.php index 171ae45..7cdb340 100644 --- a/src/Citrix/GoToWebinar.php +++ b/src/Citrix/GoToWebinar.php @@ -38,7 +38,7 @@ public function __construct($client) */ public function getUpcoming(){ - $url = 'https://api.citrixonline.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/upcomingWebinars'; + $url = 'https://api.getgo.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/upcomingWebinars'; $this->setHttpMethod('GET') ->setUrl($url) ->sendRequest($this->getClient()->getAccessToken()) @@ -54,7 +54,7 @@ public function getUpcoming(){ */ public function getWebinars(){ - $url = 'https://api.citrixonline.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars'; + $url = 'https://api.getgo.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars'; $this->setHttpMethod('GET') ->setUrl($url) ->sendRequest($this->getClient()->getAccessToken()) @@ -84,7 +84,7 @@ public function getPast(){ $since = date('Y-m-d\TH:i:s\Z', mktime(0, 0, 0, 7, 1, 2000)); $until = date('Y-m-d\TH:i:s\Z'); - $url = 'https://api.citrixonline.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/historicalWebinars'; + $url = 'https://api.getgo.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/historicalWebinars'; $this->setHttpMethod('GET') ->setParams(array('fromTime' => $since, 'toTime' => $until)) @@ -103,7 +103,7 @@ public function getPast(){ * @return \Citrix\Entity\Webinar */ public function getWebinar($webinarKey){ - $url = 'https://api.citrixonline.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars/' . $webinarKey; + $url = 'https://api.getgo.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars/' . $webinarKey; $this->setHttpMethod('GET') ->setUrl($url) ->sendRequest($this->getClient()->getAccessToken()) @@ -115,7 +115,7 @@ public function getWebinar($webinarKey){ * ADDED by jwilson on 2015-12-01 */ public function createWebinar($params) { - $url = 'https://api.citrixonline.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars'; + $url = 'https://api.getgo.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars'; // print_r($params); $this->setHttpMethod('POST') ->setUrl($url) @@ -134,7 +134,7 @@ public function createWebinar($params) { */ public function getRegistrants($webinarKey){ - $url = 'https://api.citrixonline.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars/' . $webinarKey . '/registrants'; + $url = 'https://api.getgo.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars/' . $webinarKey . '/registrants'; $this->setHttpMethod('GET') ->setUrl($url) ->sendRequest($this->getClient()->getAccessToken()) @@ -152,7 +152,7 @@ public function getRegistrants($webinarKey){ */ public function getRegistrant($webinarKey, $registrantKey){ - $url = 'https://api.citrixonline.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars/' . $webinarKey . '/registrants/'.$registrantKey; + $url = 'https://api.getgo.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars/' . $webinarKey . '/registrants/'.$registrantKey; $this->setHttpMethod('GET') ->setUrl($url) ->sendRequest($this->getClient()->getAccessToken()) @@ -168,7 +168,7 @@ public function getRegistrant($webinarKey, $registrantKey){ */ public function getAttendees($webinarKey){ - $url = 'https://api.citrixonline.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars/' . $webinarKey . '/attendees'; + $url = 'https://api.getgo.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars/' . $webinarKey . '/attendees'; $this->setHttpMethod('GET') ->setUrl($url) ->sendRequest($this->getClient()->getAccessToken()) @@ -186,7 +186,7 @@ public function getAttendees($webinarKey){ */ public function register($webinarKey, $registrantData){ - $url = 'https://api.citrixonline.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars/' . $webinarKey . '/registrants'; + $url = 'https://api.getgo.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars/' . $webinarKey . '/registrants'; $this->setHttpMethod('POST') ->setUrl($url) ->setParams($registrantData) @@ -205,7 +205,7 @@ public function register($webinarKey, $registrantData){ */ public function unregister($webinarKey, $registrantKey){ - $url = 'https://api.citrixonline.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars/' . $webinarKey . '/registrants/' . $registrantKey; + $url = 'https://api.getgo.com/G2W/rest/organizers/' . $this->getClient()->getOrganizerKey() . '/webinars/' . $webinarKey . '/registrants/' . $registrantKey; $this->setHttpMethod('DELETE') ->setUrl($url) ->sendRequest($this->getClient()->getAccessToken())