-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAuth.py
More file actions
19 lines (18 loc) · 729 Bytes
/
Auth.py
File metadata and controls
19 lines (18 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class Auth(object):
"""
This class represents Authentication/API credentials..
API key and API secret must be optional because there are
some services such as Application Service, does not
need API credentials. Instead, it creates API credentials..
"""
def __init__(self, username, password, api_key, api_secret):
"""
:param username: GittiGidiyor Developer Username
:param password: GittiGidiyor Developer Password
:param api_key: Application API Key
:param api_secret: Application Secret Key
"""
self.username = username
self.password = password
self.api_key = api_key
self.api_secret = api_secret