setAccessKey("ak"); $client->setSecretKey("sk"); $params = array(); $params["ServiceId"] = "imagex service id"; $filePaths = array("image path 1"); $response = $client->uploadImages($params, $filePaths); echo $response;