Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions onesky/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ def __init__(self, api_key, api_secret,
request_callback=None):
self.api_url = api_url
self.api_key = api_key
self.api_secret = api_secret
self.api_secret = api_secret.encode('utf-8')
self.download_dir = download_dir
self.request_callback = request_callback

def create_auth_variables(self):
timestamp = str(int(time.time()))
timestamp = str(int(time.time())).encode('utf-8')

dev_hash = hashlib.md5()
dev_hash.update(timestamp)
Expand Down