>>> box = pandora.pandora.Pandora()
>>> box.user = 'myemail@email.com'
>>> box.update_station_list()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pandora/pandora.py", line 10, in check_authentication
return f(self, *args)
File "pandora/pandora.py", line 35, in update_station_list
self.stations = self.connection.get_stations(self.user)
File "pandora/connection.py", line 63, in get_stations
return self.do_request('user.getStationList', False, True, user)['stations']
File "pandora/connection.py", line 130, in do_request
raise ValueError("%d: %s" % (code, msg))
ValueError: 9: An unexpected error occurred
>>> box.user = None
>>> box.update_station_list()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pandora/pandora.py", line 9, in check_authentication
raise ValueError("User not yet authenticated")
ValueError: User not yet authenticated
>>>
I don't quite understand how this module works. And I can't seem to find the documentation so I have been attempting to read the model source but obviously failing.
I don't quite understand how this module works. And I can't seem to find the documentation so I have been attempting to read the model source but obviously failing.
Do I need to specify a "box.password"?