forked from roopeshvaddepally/python-ebay
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
24 lines (18 loc) · 844 Bytes
/
__init__.py
File metadata and controls
24 lines (18 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
def configure(*args, **kwargs):
pass
class EBay(object):
"""An object that helps to wrap around raw api calls.
EBay object initializes an object which take the dev keys and
certificates and configures the parameters being passed to the
url calls.
Instead of keys, the path to file can be given. By default, the
object reads from the config.ini file from current working directory.
::
>>> ebay = EBay() # reads from config.ini file.
>>> ebay.finding.getVersion() # calls finding.py/getVersion with
# appropriate parameters.
"""
def __init__(self, dev=None, app=None, cert=None, config="config.ini"):
## read the config file and load the dev, app, cert variables.
## override the variables from the parameters passed in.
pass