Merge branch 'release/v18.2.3'
This commit is contained in:
@@ -124,6 +124,19 @@ def make_authorization_url():
|
|||||||
|
|
||||||
return HttpResponseRedirect(url)
|
return HttpResponseRedirect(url)
|
||||||
|
|
||||||
|
def revoke_access(user):
|
||||||
|
headers = {
|
||||||
|
'Authorization': 'Bearer {token}'.format(token=user.rower.polartoken)
|
||||||
|
}
|
||||||
|
|
||||||
|
response = requests.delete('https://www.polaraccesslink.com/v3/users/{user-id}', params={
|
||||||
|
'user-id':user.rower.polaruserid,
|
||||||
|
}, headers = headers)
|
||||||
|
|
||||||
|
dologging('polar.log',response.text)
|
||||||
|
|
||||||
|
return 1
|
||||||
|
|
||||||
def get_polar_notifications():
|
def get_polar_notifications():
|
||||||
url = baseurl+'/notifications'
|
url = baseurl+'/notifications'
|
||||||
state = str(uuid4())
|
state = str(uuid4())
|
||||||
|
|||||||
Reference in New Issue
Block a user