Created
October 3, 2014 17:39
-
-
Save winny-/e33cf89ea62b18cec71b to your computer and use it in GitHub Desktop.
This file contains hidden or 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 python3 | |
import pithos.pandora as pandora | |
import pithos.pandora.data as pdata | |
from getpass import getpass | |
from pprint import pprint | |
p = pandora.Pandora() | |
p.set_audio_quality(pdata.default_audio_quality) | |
username = input('Email: ') | |
password = getpass('Password: ') | |
p.connect(pdata.client_keys[pdata.default_client_id], username, password) | |
pprint(p.json_call('user.getUsageInfo')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment