Beispiel #1
0
 public function pre_save()
 {
     if (!empty($_REQUEST['session_id'])) {
         $x = new FetchToken();
         $res = $x->dispatchCall(array('SessionID' => $_REQUEST['session_id']));
         if ($res !== false) {
             $this->bean->ebay_auth_token = $res['AuthToken'];
             $this->bean->hard_expiration_time = $res['ExpireTime'];
         } else {
             sugar_cleanup(true);
         }
     }
     parent::pre_save();
 }
Beispiel #2
0
<?php

require_once '../classes/FetchToken.php';
$fetch_token_array = new FetchToken();
foreach ($fetch_token_array->response() as $key => $value) {
    echo "<p>" . $key . ": " . $value;
}