Maybe this request summarizes questions raised in several threads:
1) I can't use Oauth since my provider does not offer Oauth
.... I have started to use this, since you can upload it to the server as pure php
https://www.phpclasses.org/package/7700-PHP-Authorize-and-access-APIs-using-OAuth.html
2) I get a "signature invalid" ... or maybe the sticky "Authorization error"
I get a 401 error and debugging shows that the string used for signature is built like:
GET&https%3A%2F%2Fapi.shapeways.com%2Fmodels%2F5302680%2Fv1&oauth_consumer_key%3<mykey>a%26oauth_nonce%3<....>%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1481872054%26oauth_token%<mytoken>1%26oauth_version%3D1.0
in the Wireshark protocol of a working example I have found in the Authorization header:
OAuth oauth_consumer_key=\"<mykey>",oauth_signature_method=\"HMAC-SHA1\",oauth_nonce=\"....\",oauth_timestamp=\"1481834111\",oauth_version=\"1.0\",oauth_token=\"<mytoken>",oauth_signature=\"NjNZqHNgoSUUS6YWQdNRqa8aNEk%3D\"
0
Is the problem in the url?
Is it guaranteed that the options are sorted as stated by the Oauth protocal before building the key?
3) The provided example in php-curl runs also in an authentication failure when requesting the token.
https://api.shapeways.com/oauth1/re...oauth_signature=L4Kn9tkdl7pNHnjwmzIz6p0WX8Q=<
Woody64