diff --git a/pastebin/pastebin.py b/pastebin/pastebin.py index 15bb26a..cb0575f 100644 --- a/pastebin/pastebin.py +++ b/pastebin/pastebin.py @@ -294,7 +294,7 @@ class PasteBin: def create_user_key(self, username, password): params = {'api_dev_key':self.api_dev_key, 'api_user_name':username, 'api_user_password':password} - return api_call('api_login.php', params) + return self.api_call('api_login.php', params) def paste(self, data, guest=False, name=None, format=None, private=None, expire=None): params = {'api_dev_key':self.api_dev_key, 'api_option':'paste', 'api_paste_code':data}