Created
November 29, 2017 09:42
-
-
Save cruftyoldsysadmin/b32cb9d6f83f6b335b2d4fef5c9ed71a to your computer and use it in GitHub Desktop.
Python definition to wrap around https://pwpush.com/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# pw_push() Pushes password to pwpush.com | |
# | |
def pw_push(password): | |
pwp_token = requests.post('https://pwpush.com/p.json', data = | |
{ | |
'password[payload]' : password, | |
'password[expire_after_day]' : 5, | |
'password[expire_after_views]' : 5, | |
}).json()['url_token'] | |
pwp_url = "https://pwpush.com/p/" + pwp_token | |
return pwp_url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment