/**
  * sample_GetNotificationsUsage::dispatchCall()
  * 
  * Dispatch the call
  *
  * @param array $params array of parameters for the eBay API call
  * 
  * @return boolean success
  */
 public function dispatchCall($params)
 {
     $req = new GetNotificationsUsageRequestType();
     $req->setStartTime($params['StartTime']);
     $req->setEndTime($params['EndTime']);
     $res = $this->proxy->GetNotificationsUsage($req);
     if ($this->testValid($res)) {
         $this->dumpObject($res);
         return true;
     } else {
         return false;
     }
 }
 /**
  * @return GetNotificationsUsageResponseType
  * @param GetNotificationsUsageRequestType $request 
  */
 function GetNotificationsUsage($request)
 {
     $request->setVersion(EBAY_WSDL_VERSION);
     return $this->call('GetNotificationsUsage', $request);
 }
Example #3
0
 public function GetNotificationsUsage()
 {
     $EndTime = gmdate('Y-m-d\\TH:i:s') . '.000Z';
     // now
     $StartTime = gmdate('Y-m-d\\TH:i:s', strtotime('-2 days')) . '.000Z';
     // 2 days ago (3 days max)
     // send request
     $req = new GetNotificationsUsageRequestType();
     $req->setEndTime($EndTime);
     $req->setStartTime($StartTime);
     // $req->setItemID( $ebay_id ); // get detailed events for single item
     $res = $this->sp->GetNotificationsUsage($req);
     // handle result
     return print_r($res, 1);
 }