Example #1
0
 public function send_package()
 {
     if (!$this->sessionkey) {
         throw new portfolio_plugin_exception('noauthtoken', 'portfolio_picasa');
     }
     $picasa = new google_picasa(new google_authsub($this->sessionkey));
     foreach ($this->exporter->get_tempfiles() as $file) {
         if (!$picasa->send_file($file)) {
             throw new portfolio_plugin_exception('sendfailed', 'portfolio_picasa', $file->get_filename());
         }
     }
 }