Hi,
I tried to run a script that I wrote long time ago, but now a call to GET /models/v1 is returning
"Exception : Invalid auth/bad request (got a 400, expected HTTP/1.1 20X or a redirect)"
To verify there's nothing wrong with oauth, I tested with a GET /models/{modelId}/v1 in the same class function, and that one works without a problem...
Also I tried several of the stock PHP scripts that Shapeways provided, and they work with my consumer key and access token (but there's no sample provided calling GET /models/v1 !)
Code snippet:
I call:
$oauth->fetch(API_URL_BASE."/models/v1", $page, OAUTH_HTTP_METHOD_GET, array("Accept" => "application/json"));
where API_URL_BASE is defined outside the class ( define('API_URL_BASE',$api_url_base); and
$api_url_base = "
https://api.shapeways.com"
![Wink ;) ;)](styles/default/xenforo/clear.png)
$page = 1
this call:
$oauth->fetch(API_URL_BASE ."/models/$modelId/v1", null, OAUTH_HTTP_METHOD_GET, array("Accept" => "application/json"));
works without a problem, where $modelld is set to one of my own models obviously
Is it my script, or the API has a problem at Shapeway side?
Best regards,
Robert