Hello,
I am using the php-pecl method on a windows pc through the command line to upload some models. I've been able to get the access token and all of that, but I run into problems when I run the "ModelUpload-oauth1-pecl.php" file from the examples to upload a model. The model does actually upload but returns an error in the process somewhere in this line:
$oauth->fetch($api_url_base ."/models/v1", $data_string, OAUTH_HTTP_METHOD_POST, array("Accept" => "application/json"));
The error reads:
Exception : Invalid auth/bad request (got a 500, expected HTTP/1.1 20X or a redi rect)
This wouldn't be too much of an issue, since the model actually uploads, but most of my parameters aren't being implemented. I am trying to adjust the "uploadScale" and the "defaultMaterialId" parameters but they always come out as the defaults. I'm assuming that's because of this error. I can change the "title" parameter though. So it's probably getting the error somewhere between those parameters. Any ideas?
I also tried the nodejs method and got a very similar error.
Thanks in advance