Hello.
I am banging my head against a wall at the moment. I am using the codeigniter port of the slideshare php wrapper for the api and it is working well for all other functions. I am trying to have a script upload a file to slideshare and keep getting the following error returned:
Array ( [0] => Array ( [Error] => true [Message] => Incorrect parameters ) )
However, if I paste the URL that is being called by the following function into a browser it works with no issues and returns the ssid of the file as I would expect.
private function get_data($call, $params) {
$ts = time();
$hash = sha1($this->secret . $ts);
try {
$res = $this->file_get_contents_utf8($this->apiurl . $call . "?api_key=$this->key&ts=$ts&hash=$hash" . $params);
} catch (Exception $e) {
// Log the exception and return $res as blank
}
return utf8_encode($res);
}
// Upload slide to slideshare
public function upload_slide( $params ) {
$strparams = $this->prepare_url($params);
$data = $this->XMLtoArray($this->get_data("upload_slideshow", "&" . $strparams));
return $data;
}
Any help or advice would be appreciated.
Many thanks,
Jamie