Skip to content

Instantly share code, notes, and snippets.

@cruftyoldsysadmin
Created November 29, 2017 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cruftyoldsysadmin/b32cb9d6f83f6b335b2d4fef5c9ed71a to your computer and use it in GitHub Desktop.
Save cruftyoldsysadmin/b32cb9d6f83f6b335b2d4fef5c9ed71a to your computer and use it in GitHub Desktop.
Python definition to wrap around https://pwpush.com/
#!/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