Skip to content

Commit

Permalink
Fix 403 again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorrow446 authored Feb 10, 2021
1 parent 831018b commit c28ac63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self):
'Referer':'http://localhost:19330/'
})
self.bases = ['https://api.napster.com/', 'http://direct.rhapsody.com/']
self.key = "NTEwNDI1OGUtY2IyMi00MGNmLWIxMjQtYzI2MjVkYWM0ODJh"
self.key = "OWJjYjNlMjUtM2Q2OC00MmUxLTkwM2YtNWVmMmUyMGY2OWYy"

def make_call(self, method, epoint, data=None, params=None, headers=None, i=0):
if headers:
Expand All @@ -31,9 +31,9 @@ def auth(self, email, pwd, lang):
'grant_type': 'password'
}
headers = {
'Authorization': 'Basic TlRFd05ESTFPR1V0WTJJeU1pMDBNR05tTFdJeE1qUXRZekkyT'
'WpWa1lXTTBPREpoOk56YzNPRE0yWWpVdE1XWTVNQzAwWWpVMkxXSm1P'
'RGN0TXpZd01UYzNOR0U1WkdFMQ=='
'Authorization': 'Basic T1dKallqTmxNalV0TTJRMk9DMDBNbVV4TFRrd00yWXROV1ZtT'
'W1VeU1HWTJPV1l5OllqTTBOakkwWkdFdE5XUTJZUzAwWlROa0xUa3pZ'
'MkV0TWpGbE9HSmlPV00yTlRReA=='
}
j = self.make_call(
'POST', 'oauth/token', data=data, headers=headers)
Expand Down

1 comment on commit c28ac63

@adrianmejiam
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently there is a new error!

Please sign in to comment.