title: Citrix GoToWebinar API Response with teodortalov/citrix
body: <p>Thank you for taking the time to review my question.</p>
  
  <p>I have been trying to implement the Citrix Go2Webinar Api and found this nice framework: <a href="https://github.com/teodortalov/citrix" rel="nofollow">https://github.com/teodortalov/citrix</a></p>
  
  <p>I have successfully registered users, but I can't figure out how to get the response from the API.</p>
  
  <pre><code>public function user_registration($user, $webinar_id)
          {
              $client = new \Citrix\Authentication\Direct([$this-&gt;api_key]);
              $client-&gt;auth($this-&gt;username, $this-&gt;password);
  
              $webinar = new \Citrix\GoToWebinar($client);
  
              $registration = array('firstName' =&gt; $user['first_name'], 'lastName' =&gt; $user['last_name'], 'email' =&gt; $user['email']);
  
              $registrant = $webinar-&gt;register($webinar_id, $registration);
  
              return $registrant;
          }
  </code></pre>
  
  <p>The response I get looks like a bunch of protected variables. My question shouldn't I be able to call a method to get the formatted response which looks like what the Citrix API expects to return:</p>
  
  <pre><code>{
     "registrantKey": 0,
     "joinUrl": "string"
  }
  </code></pre>