I am having trouble accessing Picasa web albums by album name. I have album name 'My Test Album'. If I use that name (including the spaces) I receive the error:
Fatal error: Uncaught exception 'Zend_Uri_Exception' with message 'Invalid URI supplied'
Without the spaces 'MyTestAlbum' works fine:
// Construct the query
$query = $this->photos->newAlbumQuery();
$query->setUser( "default" );
$query->setAlbumName( "MyTestAlbum" ); //This works fine
This causes error:
// Construct the query
$query = $this->photos->newAlbumQuery();
$query->setUser( "default" );
$query->setAlbumName( "My Test Album" ); // This causes error
My question is that what characters are not allowed so I can strip them out before calling setAlbumName()
?
Or any suggestions on a better approach?
Thanks Ian