Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request teodortalov#22 from fredmansky/apiurlchange
Browse files Browse the repository at this point in the history
Changed API-URL
  • Loading branch information
teodortalov authored May 22, 2017
2 parents c4fac5a + 555e83f commit 08fc70f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Citrix/Authentication/Direct.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 10 additions & 10 deletions src/Citrix/GoToWebinar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -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())
Expand Down Expand Up @@ -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))
Expand All @@ -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())
Expand All @@ -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)
Expand All @@ -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())
Expand All @@ -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())
Expand All @@ -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())
Expand All @@ -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)
Expand All @@ -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())
Expand Down

0 comments on commit 08fc70f

Please sign in to comment.