/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); if ($return['Ack'] == 'Success') { return $return['Fees']['Fee']['Name']; } }
/** * make the API call * * @param object \Services\Ebay\Session * @return string feedback ID */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); if ($return['LeaveFeedback']['Status'] === 'Success') { return $return['LeaveFeedback']['FeedbackId']; } return false; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); if ($return['CallStatus']['Status'] === 'Success') { return true; } return false; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); if (isset($return['OrderID'])) { return $return['OrderID']; } return false; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); echo '<pre>'; print_r($return); echo '</pre>'; return false; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); if (isset($return['ShippingRates']['ShippingRate'][0])) { return $return['ShippingRates']['ShippingRate']; } return array($return['ShippingRates']['ShippingRate']); }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); if ($return['Ack'] === 'Success') { return $return['DisputeID']; } return false; }
/** * make the API call * * @param object \Services\Ebay\Session * @return array */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = \Services\Ebay\Call::call($session); if (isset($return['Item'])) { return $return['Item']; } return false; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); if ($return['AddToItemDescriptionResponse']['Ack'] === 'Success') { return true; } return false; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); if (!empty($return['PromotionRuleArray'])) { return $return['PromotionRuleArray']; } return array(); }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); if (isset($result['TransactionArray'])) { $result = \Services\Ebay::loadModel('TransactionList', $return['TransactionArray'], $session); return $result; } return false; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $returnElement = $this->args['DetailName']; $returnSubElements = str_replace('Details', '', $returnElement); $return = parent::call($session); if (!isset($return[$returnElement][0][$returnSubElements])) { $return[$returnElement][$returnSubElements] = array($return[$returnElement][$returnSubElements]); } return $return[$returnElement]; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $xml = parent::call($session, false); $dom = DOMDocument::loadXML($xml); $result = array(); $productFinders = $dom->getElementsByTagName('ProductFinder'); foreach ($productFinders as $node) { $result[] = \Services\Ebay::loadModel('ProductFinder', $node, $session); } return $result; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); if (isset($return['ShippingDetails']['ShippingServiceOptions'][0])) { $return['ShippingDetails']['ShippingServiceOptions'] = $return['ShippingDetails']['ShippingServiceOptions']; unset($return['ShippingDetails']['ShippingServiceOptions']); } else { $return['ShippingDetails']['ShippingServiceOptions'] = array($return['ShippingDetails']['ShippingServiceOptions']); unset($return['ShippingRate']['ShippingServiceOptions']); } return $return['ShippingDetails']; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); if (!isset($return['OutageSchedules']) || !is_array($return['OutageSchedules'])) { return array(); } $list = $return['OutageSchedules']['OutageSchedule']; if (!isset($list[0])) { $list = array($list); } return $list; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); $result = array(); foreach ($return['ProductFinderXsl']['XslFile'] as $xsl) { if (isset($xsl['Xsl'])) { $xsl['Xsl'] = base64_decode($xsl['Xsl']); } array_push($result, $xsl); } return $result; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); if (isset($return['Item'])) { $returnItem = $return['Item']; $this->item->Id = $returnItem['Id']; $this->item->StartTime = $returnItem['StartTime']; $this->item->EndTime = $returnItem['EndTime']; $this->item->Fees = $returnItem['Fees']; return true; } return false; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $bak = $this->args; $this->args['PaginationType'] = array(); foreach ($this->paramMap as $param) { if ($param == 'TransactionsPerPage' || $param == 'PageNumber') { if (!isset($this->args[$param])) { continue; } $this->args['PaginationType'][$param] = $this->args[$param]; unset($this->args[$param]); } } $return = parent::call($session); $result = \Services\Ebay::loadModel('TransactionList', $return, $session); $this->args = $bak; return $result; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); switch ($this->args['PreferenceLevel']) { case 'Application': return $return['ApplicationDeliveryPreferences']; break; case 'User': return $return['UserDeliveryPreferenceArray']; break; case 'UserData': return $return['UserData']; break; case 'Event': return $return['EventProperty']; break; default: return $return; } }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); return \Services\Ebay::loadModel('SearchResult', $return, $session); }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); return $return['Message']; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); return \Services\Ebay::loadModel('Dispute', $return['Dispute'], $session); }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); return $return['SuggestedCategories']; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); return \Services\Ebay::loadModel('ItemList', $return['BidItemArray'], $session); }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); $feedback = \Services\Ebay::loadModel('Feedback', $return, $session); return $feedback; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); $user = \Services\Ebay::loadModel('User', $return['User'], $session); return $user; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); return $return['CategoryArray']; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); return $return['FetchTokenResponse']['eBayAuthToken']; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); $result = \Services\Ebay::loadModel('MemberMessageList', $return, $session); return $result; }
/** * make the API call * * @param object \Services\Ebay\Session * @return string */ public function call(\Services\Ebay\Session $session, $parseResult = true) { $return = parent::call($session); return \Services\Ebay::loadModel('MyeBay', $return['BiddingWatching'], $session); }