Browse Source

fix dict merging (#19)

Signed-off-by: r4sas <r4sas@i2pmail.org>
dependabot/add-v2-config-file
R4SAS 5 years ago
parent
commit
641c55a6a2
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 5
      pbincli/api.py

5
pbincli/api.py

@ -107,9 +107,8 @@ class Shortener: @@ -107,9 +107,8 @@ class Shortener:
def getlink(self, url):
if self.api == 'yourls':
data_format = 'json'
args = {'action': 'shorturl', 'format': data_format, 'url': url}
reqest = dict(args.items() + self.auth_args.items())
request = {'action': 'shorturl', 'format': 'json', 'url': url}
request.update(self.auth_args)
result = self.session.post(
url = self.apiurl,

Loading…
Cancel
Save