Search Search  
Today's Messages (ON)  | Unanswered Messages (OFF)

Forum: Shapeways API
 Topic: price api responding with 401
price api responding with 401 [message #96558] Wed, 20 August 2014 06:14 UTC
avatar knagin  is currently offline knagin
Messages: 1
Registered: August 2014
Go to all my models
Junior Member
I have implemented much of the api in java using jersey however the price api is responding with a 401.
I successfully get materials, printers and models.
For the price api I'm reusing the same oauth 1.0 parameter settings as the above gets and adding
the price post parameters.
Here is a printout of the parameters (replaced consumer key with <my consumer key>):
Params: {xBoundMax=0.01, oauth_nonce=1408514012058, oauth_version=1.0, oauth_consumer_key=<my consumer key>, oauth_signature=signature, area=0.0006, zBoundMin=0.01, oauth_signature_method=HMAC-SHA1, oauth_token=41489a1ed330bfcd02c5fa28cf474a8d138b6241, volume=0.000001, yBoundMax=0.01, yBoundMin=0.01, oauth_timestamp=1408514040, xBoundMin=0.01}
This is the response:
Exception in thread "main" com.sun.jersey.api.client.UniformInterfaceException: POST http://api.shapeways.com/price/v1 returned a response status of 401
at com.sun.jersey.api.client.WebResource.handle(WebResource.jav a:562)
at com.sun.jersey.api.client.WebResource.post(WebResource.java: 219)
at App.main(App.java:194)


What do you think I am doing wrong?

Ken

Logo

Hello.

We're sorry to inform you that we no longer support this browser and can't confirm that everything will work as expected. For the best Shapeways experience, please use one of the following browsers:

Click anywhere outside this window to continue.