コード例 #1
0
ファイル: test_finding.py プロジェクト: tktang/python-ebay
 def test_findItemsByProduct(self):
     result = findItemsByProduct(
                    keywords=keywords, \
                    productId=productId, \
                  affiliate=affiliate, \
                  buyerPostalCode=buyerPostalCode, \                      paginationInput= paginationInput, \
                  sortOrder=sortOrder, \
                  itemFilter=itemFilter, \
                  outputSelector=outputSelector, \
                  encoding=encoding)
コード例 #2
0
ファイル: test_finding.py プロジェクト: eike-welk/python-ebay
    def test_findItemsByProduct(self):
        result = findItemsByProduct(
                       keywords=keywords, \
                       productId=productId, \
                       affiliate=affiliate, \
                       buyerPostalCode=buyerPostalCode, \
                       paginationInput= paginationInput, \
                       sortOrder=sortOrder, \
                       itemFilter=itemFilter, \
                       outputSelector=outputSelector, \
                       encoding=encoding)
#        print result
        root = etree.fromstring(result)
        ack = root.find("{http://www.ebay.com/marketplace/search/v1/services}ack").text
        self.assertEqual(ack, "Failure") 
コード例 #3
0
 def test_findItemsByProduct(self):
     result = findItemsByProduct(
                 keywords=keywords, \
                 productId=productId, \
                 affiliate=affiliate, \
                 buyerPostalCode=buyerPostalCode, \
                 paginationInput= paginationInput, \
                 sortOrder=sortOrder, \
                 itemFilter=itemFilter, \
                 outputSelector=outputSelector, \
                 encoding=encoding)
     #       print result
     root = etree.fromstring(result)
     ack = root.find(
         "{http://www.ebay.com/marketplace/search/v1/services}ack").text
     self.assertEqual(ack, "Failure")
コード例 #4
0
ファイル: example_finding.py プロジェクト: veziak/python-ebay
from ebay.finding import getSearchKeywordsRecommendation, findItemsByKeywords, findItemsByCategory, findItemsAdvanced, findItemsByProduct, findItemsIneBayStores, getHistograms

print getSearchKeywordsRecommendation(encoding="XML", keywords="acordian")
print findItemsByKeywords(keywords="ipod")
print findItemsByCategory(categoryId="123")
print findItemsAdvanced()
print findItemsByProduct(productId="123")
print findItemsIneBayStores()
print getHistograms(categoryId="12")