From 627992036a6178ed7137ecb4185bc4728e2c5711 Mon Sep 17 00:00:00 2001 From: spbeach46 Date: Sat, 30 Jan 2021 03:38:26 -0700 Subject: [PATCH] reverted back to creds in script. change to config file method --- ebay_api.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ebay_api.py b/ebay_api.py index 77431a6..81dd552 100644 --- a/ebay_api.py +++ b/ebay_api.py @@ -4,7 +4,6 @@ import concurrent.futures import json import requests import pandas as pd -import os class FindingApi: '''Methods for accessing eBays FindingApi services''' @@ -16,7 +15,6 @@ class FindingApi: ][service] self.pageNumber = list(range(1, pageNumber)) # 64 pages is recommended # as this will give equal weights to cats given call constraints - self.security_appname = os.environ.get('SECURITY-APPNAME') # departments = ["3034","93427"] (womens and mens) @@ -34,7 +32,7 @@ class FindingApi: params = { "OPERATION-NAME":self.service, - "SECURITY-APPNAME":self.security_appname, + "SECURITY-APPNAME":"scottbea-xlister-PRD-6796e0ff6-14862949", "SERVICE-VERSION":"1.13.0", "RESPONSE-DATA-FORMAT":"JSON", "categoryId":category_id, @@ -106,10 +104,9 @@ class ShoppingApi: ''' Gets raw JSON data from multiple live listings given multiple itemIds ''' - finding = FindingApi(4,2) params = { "callname":"GetMultipleItems", - "appid":finding.security_appname, + "appid":"scottbea-xlister-PRD-6796e0ff6-14862949", "version":"671", "responseencoding":"JSON", "ItemID":twenty_id,