Hi, If I try and call https://api.shapeways.com/materials/v1 I get a page of documentation back for the API (which is fine). How do I actually get some values back? Do I need to pass my OAuth credentials as URL parameters. If so, what format should the URL take (I've already tried, and got 401 errors). Thanks in advance
Hi Rafferty, When you access the API without OAuth credentials you connect to the JSON API discovery system. To get started with the API and OAuth please have a look at https://developers.shapeways.com/getting-started?li=dh_gs regards, Hans Lambermont
Sending oauth credentials as URL parameters will cause 401 errors. They need to be sent in the authorization header.
Thanks for your response. I also get "(401) Unauthorised" when I send the oAuth in the header (that's why I was trying the URL instead). My HTTP request looks something like: GET https://api.shapeways.com/materials/v1 HTTP/1.1 Authorization: OAuth oauth_consumer_key="???",oauth_nonce="???",oauth_signature= "???",oauth_signature_method="HMAC-SHA1",oauth_timestamp= "1372769703",oauth_version="1.0" Host: api.shapeways.com Connection: Keep-Alive Thanks in advance Rafferty
Are you getting a json error message with the 401? We send those so that you'll know why the 401 was sent.