mirror of
https://github.com/r4sas/PBinCLI
synced 2025-01-09 14:28:06 +00:00
parent
432675f2e6
commit
641c55a6a2
@ -107,9 +107,8 @@ class Shortener:
|
|||||||
|
|
||||||
def getlink(self, url):
|
def getlink(self, url):
|
||||||
if self.api == 'yourls':
|
if self.api == 'yourls':
|
||||||
data_format = 'json'
|
request = {'action': 'shorturl', 'format': 'json', 'url': url}
|
||||||
args = {'action': 'shorturl', 'format': data_format, 'url': url}
|
request.update(self.auth_args)
|
||||||
reqest = dict(args.items() + self.auth_args.items())
|
|
||||||
|
|
||||||
result = self.session.post(
|
result = self.session.post(
|
||||||
url = self.apiurl,
|
url = self.apiurl,
|
||||||
|
Loading…
Reference in New Issue
Block a user