General functions with ebay API