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

Forum: Shapeways API
 Topic: Email based alternative to API
Email based alternative to API [message #94537] Tue, 22 July 2014 17:39 UTC
avatar eXtrudy  is currently offline eXtrudy
Messages: 28
Registered: June 2013
Go to all my models
Junior Member
Hi,

to be honest - the API seems a little bit too complicated for using it in small, non-commercial software projects. It would be much easier just to send a mail from the user's mail client to shapeways, which contains the created stl file as attachment and a standard text. Minutes later the user could then receive a reply mail with a link to his uploaded object and then decide if he wants to create an account or sign in if he already has one. No need for consumer keys, developer authentication etc. Of course this wouldn't be an option for business owners, but an interesting alternative for hobby developers.

best regards, Hendrik


www.facebook.com/eXtrudy
 Topic: how to create a shapeways based shop within my website?
how to create a shapeways based shop within my website? [message #93498] Sun, 06 July 2014 15:09 UTC
avatar BEAST3D  is currently offline BEAST3D
Messages: 1
Registered: June 2014
Go to my shop
Junior Member
Hi,

I'm new to shapeways, and I want to be able to create my a shop on my business website where people can select and buy the 3d prints the same way they would do if they went directly onto my shop in the shapeways website. Presumably this is what the API business is that people are working on here? I'm not entirely sure.

Is this possible? From what I've seen it looks like it, but where do you start?

Cheers,
Mike

[Updated on: Mon, 07 July 2014 21:33 UTC]

 Topic: Price api currency (Euro vs USD)
Price api currency (Euro vs USD) [message #89207] Tue, 06 May 2014 09:35 UTC
avatar siets  is currently offline siets
Messages: 1
Registered: April 2014
Go to my shop
Junior Member
Hi,

How does the price api determine the currency that is returned? I'm only getting the price in USD, but my primary audience will be interested in the price in euros.

The context of my question is the following:
I'm building a site that can generate a customizable 3d model (using ShapeJS!). When the customer is satisfied with the model, the site will upload it to shapeways as a private model to my store. There the customer can buy the model using a shapeways account.

Prior to uploading the model I'd like to display the price (in Euros and USD).

How can this be done? Or is there a preferred alternative approach?

Thanks!

Sietse.
 Topic: cannot get authentication URL
cannot get authentication URL [message #85992] Sun, 09 March 2014 01:20 UTC
avatar tophercf  is currently offline tophercf
Messages: 4
Registered: February 2014
Go to all my models
Junior Member
Hi Team,

I am a bit stuck using the python wrapper for the shapeways API.

The example documentation shows the following:

client = Client("key","secret")
url = client.connect()


only when I am printing this url out in my logging it is a nonetype. The object is capturing all of the necessary parameters and encoding them, but when the post request is made, it is note successful. Does anyone else have this issue?

My stack is: Python, Google App Engine, and Blobstore. Please let me know if I should add more detail to my question.


Google App Engine Log:
2014-03-08 17:03:42.543

"POST /oauth1/request_token/v1 HTTP/1.1" 401 None

D 2014-03-08 17:03:42.544

Redirect URL:

D 2014-03-08 17:03:42.544

None

D 2014-03-08 17:03:42.545

if Nonetype above, authentication request has failed.

 Topic: Posting model data in C#?
Posting model data in C#? [message #85840] Wed, 05 March 2014 16:27 UTC
avatar paulbird  is currently offline paulbird
Messages: 6
Registered: March 2014
Go to my shop
Junior Member
Hi, I had a look at the github for the C# code.

It has functions for logging in and verifying. (Even though they don't work very well but I modified them). So I think I got that at least.

But I don't see any functions for actually posting any model data? All the functions are GET functions.

What do I need to do to post model data in C sharp?

Do I need to post paramters such as token "oauth_signature" or should they be URL parameters such as:


https://api.shapeways.com/models/v1?oauth_consumer_key=85e3e b8e59f2060cdb6e19ab561&oauth_nonce=s1vzsx0pp
&oauth_signature=9Yk9aRxvpNjunM
&oauth_signature_method=HMACSHA1
&oauth_timestamp=139403
&oauth_token=be5b37605cd1a2ff61cc983f1&oauth_version =1.0a

Do I need to send all these parameters like a form? And if so what about the encoded json data itself? Does this have a parameter name too? I guess "file" and "filename". Even though in the information these are both in the same Json data.

( I presume I have to send some sort of auth_signiture otherewise how will it verify that this is the correct user?)

[Updated on: Wed, 05 March 2014 16:54 UTC]

 Topic: VB.NET
VB.NET [message #84655] Mon, 10 February 2014 12:16 UTC
avatar jjzwaard  is currently offline jjzwaard
Messages: 1
Registered: July 2013
Go to all my models
Junior Member
I am looking for anyone who has experience with the REST API and VB.NET. If you have any examples you can share, please share!


Kind regards,

JJ


 Topic: Get existing shop data?
Get existing shop data? [message #84516] Fri, 07 February 2014 17:55 UTC
avatar berky93  is currently offline berky93
Messages: 60
Registered: August 2009
Go to my shop
Member
Looking at the shop documentation, it seems to be mostly geared towards apps that create content and upload them to Shapeways. My question is, is there a way to get data from an existing shop? For instance, could I somehow retrieve a list of models in my shop, or retrieve the name, prices, photos, etc. of a given model that was uploaded using the standard interface on this website?
 Topic: Deprecating the SOAP API : April 30th
Deprecating the SOAP API : April 30th [message #84276] Mon, 03 February 2014 16:57 UTC
avatar natalia  is currently offline natalia
Messages: 787
Registered: September 2008
Go to all my models
Senior Member
I work here
Hey guys,

In order to continue providing the best possible software tools and service, we are planning to deprecate and discontinue support for our SOAP API, and in the process, migrate existing SOAP applications to use our REST API.

WHAT THIS MEANS FOR YOU:

If you have an active app that connects to the SOAP API framework, we highly recommend you transition it to the newer REST API.

We understand that re-working some of your application's code to interface with our newer API might take some time and wanted to provide an advance notice. We will be deprecating our SOAP functionality on Wed April 30, which is roughly 3 months from now.

In order to make this transition as smooth as possible, our API team will be providing help and assistance with getting your applications transitioned to our REST API. If you have any questions or concerns, please email the team at api@shapeways.com.

We appreciate your patience and your understanding as we move onwards and upwards at Shapeways.

Best,
Natalia

[Updated on: Thu, 24 April 2014 20:56 UTC] by Moderator


Shapeways Community Manager
 Topic: View price without user login
View price without user login [message #80794] Sun, 08 December 2013 19:24 UTC
avatar framp  is currently offline framp
Messages: 1
Registered: December 2013
Go to all my models
Junior Member
Is there a way to access price data without having an user log in?

I'm working on an application which needs shapeways pricing data to calculate how much an object will cost and I don't even have a browser to display my authentication_url.

The ugly way means faking a login of a fake user to get the price, but it's not something I'm willing to do.
Maybe the most important question is: Isn't there an API for non-end-user related activities?
Ideally I think, given an application key and secret, we should be able to access public data such as pricing.

Am I missing something?
Thanks in advance
 Topic: How to add an html description?
How to add an html description? [message #77382] Wed, 23 October 2013 16:43 UTC
avatar UtorCase  is currently offline UtorCase
Messages: 8
Registered: October 2013
Go to my shop
Junior Member
How can I pass html description?
For example
		$data = array("fileName" => "$filename",
			"file" => rawurlencode(base64_encode($file)),
			"title" => "Test",
			"description" => htmlentities("<li>Testing HTML <a href=\"http://list.ly/list/8tK-android-games-that-support-xbox-360-controllerhere\">here</a> a list  that you can edit as well</li></ul>"),
...

Looks like JSON is dying along the way due to the html characters. How about changing this to be base64 encoded so we can pass it in?
The error is "A fatal error occurred during model fetch exception Exception : Invalid auth/bad request (got a 401, expected HTTP/1.1 20X or a redirect)"

I also tried urlencode but then the html shows up as urlencoded...
 Topic: Getting "unknown error" when trying to upload a photo for a model
Getting "unknown error" when trying to upload a photo for a model [message #74696] Thu, 12 September 2013 21:28 UTC
avatar mattermaster  is currently offline mattermaster
Messages: 5
Registered: August 2013
Go to all my models
Junior Member
I'm not really sure why. I used the exact same code that I used to properly encode the image file as I did with the model (which I can successfully upload) except the response is

{u'reason': u'Unknown error', u'result': u'failure'}

I also noticed for models I can't upload binary stl files. They always seem to fail. Since images are always binary, I'm wondering if this is a similar issue
 Topic: Setting defaultMaterialId and uploadScale not working
Setting defaultMaterialId and uploadScale not working [message #73205] Fri, 16 August 2013 23:19 UTC
avatar levlalmanzar  is currently offline levlalmanzar
Messages: 3
Registered: April 2013
Go to all my models
Junior Member
Hello,

$data = array("fileName" => "$filename",
"file" => rawurlencode(base64_encode($file)),
"hasRightsToModel" => 1,
"title" => "testName",
"isPublic" => 0,
"acceptTermsAndConditions" => 1,
"uploadScale" => 0.0254",
"defaultMaterialId" => 26,
);

I am using the php method to upload my models but several of the parameters aren't working. When I print the return JSON it shows that I the defaultMaterialId setting has been set to 26, like I wanted. But when I view the model's JSON file on shapeways it shows that it's set itself back to 6 every time. And the uploadScale isn't taking effect either. I also can't figure out how to correctly set the "materials" parameter. All of the other parameters are setting correctly. Any assistance is appreciated. Thanks.
 Topic: POST models/v1
POST models/v1 [message #70023] Tue, 18 June 2013 11:16 UTC
avatar Rafferty  is currently offline Rafferty
Messages: 7
Registered: February 2012
Go to my shop
Junior Member
Hi,

I'm using the POST modes/v1 API to upload a model.

The API documentation describes values of "price" and "basePrice" returned within the Material elements. However, all I am receiving for each material is {\"materialId\":6,\"markup\":0,\"isActive\":1}

Is there something I need to set to specify to get the price calculation. I am specifying a particular material - but am getting a long list of materials back (including the one I specify)..

Thanks in advance

Rafferty
 Topic: Looking for experienced programmer to design app (webgl, java) for web and mobile
icon6.gif  Looking for experienced programmer to design app (webgl, java) for web and mobile [message #68817] Wed, 29 May 2013 12:13 UTC
avatar oddartlover  is currently offline oddartlover
Messages: 6
Registered: May 2013
Go to my shop
Junior Member
Looking for experienced programmer to design app (webgl, java) for web and mobile. Much like the API design apps you see here, we wish to have a step by step "Real Time" design changes app that is web based and possibly designed also for ipad/iphone/android.

We have been granted a budget for a qualified person/firm that has similar work in their portfolio and can produce quick turn around and work with us on changes as they go.

Please contact me.


Chris 423.316.5571 gohampton@mac.com Tennessee, United States
 Topic: Private models
Private models [message #66085] Sat, 13 April 2013 04:14 UTC
avatar Bathsheba  is currently offline Bathsheba
Messages: 323
Registered: August 2008
Go to my shop
Senior Member
I perceive a change here: http://developers.shapeways.com/docs

Grep it for "secretKey".


-Bathsheba
http://bathsheba.com
 Topic: Misc questions about the API
Misc questions about the API [message #59613] Fri, 04 January 2013 14:43 UTC
avatar subvs  is currently offline subvs
Messages: 1
Registered: February 2011
Go to my shop
Junior Member
Hi,
I have a few miscellaneous questions regarding the Shapeways API, which I'm using to upload models from my mobile app.

- It appears when I upload my model from my app and visit the resulting model's page in Shapeways, the "description" property, "markup", etc. appear fine, but "tags" appears empty. The value I give in my request is the following comma-delimited list:
<tags>egg,easter,painting,magic 3d easter egg painter,subvs,subversus interactive,iphone,ipad</tags>

Is there anything more I need to do to get those tags to show up?

- In a related question, is there a way to specify the "categories", "shop section", or preview photo through the API? Will there be a way?

- Is there a recommended way to construct the URL given the model's ID? I've noticed sometimes the following format results in a "Redirect Loop":
http://www.shapeways.com/model/846755/

The following format seems more reliable:
http://www.shapeways.com/model/846755/.html

Is there a format we should adhere to that will be guaranteed to always work?

- Is it possible to ask submitModel to send its response after the model has been processed? Directing our users to a URL that says "Rendering Image..." in place of the preview image is confusing. Currently I just wait 30 seconds after receiving the model ID before directing them to the URL, but I was hoping there's a better way.

- What is the meaning of properties such as specular_color, shininess, opacity, translucency, etc on MaterialArray? I understand these concepts in the context of 3D computer graphics but with real-world objects and light sources, how can these properties affect appearance?

Thanks!

[Updated on: Sat, 05 January 2013 14:15 UTC]

 Topic: getModelPrice
getModelPrice [message #59013] Fri, 21 December 2012 11:22 UTC
avatar mfussi  is currently offline mfussi
Messages: 1
Registered: January 2011
Go to my shop
Junior Member
Hi there,

i am trying to implement the getModelPrice Method, but my request always only returns 0 USD. I also tried your provided demo implementation, which also does not return any valid prices.

Are there any changes made to this method, or am I using it wrong? I'm submitting the volume in cm³ and the correspondig material ID, which is appropriate referred to the API documentation.

Greetings Markus
 Topic: Product appears as not for sale even though it is for sale :o
Product appears as not for sale even though it is for sale :o [message #45958] Sun, 25 March 2012 16:15 UTC
avatar eSculpt  is currently offline eSculpt
Messages: 38
Registered: August 2011
Go to my shop
Member
Hey guys. As the topic states, one my items appears as not for sale even though it is for sale. This since the site ui changes I think, but honestly I'm not quite sure when it started.

Any way to fix this?

edit: hmm actually it just shows as not for sale in "my models" page... seems ok elsewhere

[Updated on: Sun, 25 March 2012 16:17 UTC]


esculpt.co.za

Eric Solomon
eric@eSculpt.co.za
 Topic: WSDL 2 JAVA compilation error
WSDL 2 JAVA compilation error [message #41677] Wed, 11 January 2012 11:17 UTC
avatar aditya  is currently offline aditya
Messages: 1
Registered: January 2012
Go to all my models
Junior Member
Hi
I am trying to generate Java classes for given wsdl at http://api.shapeways.com/v1/wsdl.php
However, the compilation tools are giving me syntax errors with the wsdl.
Details below
~/jboss/bin/wsconsume.sh -k http://api.shapeways.com/v1/wsdl.php
Could not find log4j.xml configuration, logging to console.

Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -compile -exsh false -d /home/dasher/Sunglass/temp/output -verbose -classdir /home/dasher/Sunglass/temp/output -allowElementReferences http://api.shapeways.com/v1/wsdl.php
wsdl2java - Apache CXF 2.4.1

Failed to invoke WSDLToJava
org.apache.cxf.tools.common.ToolException: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : http://api.shapeways.com/v1/wsdl.php
Caused by : WSDLException (at /definitions/message[1]/part[2]): faultCode=INVALID_WSDL: Encountered illegal extension attribute 'nillable'. Extension attributes must be in a namespace other than WSDL's. 
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:291)
	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
	at org.jboss.wsf.stack.cxf.tools.CXFConsumerImpl.consume(CXFConsumerImpl.java:250)
	at org.jboss.ws.tools.cmd.WSConsume.importServices(WSConsume.java:279)
	at org.jboss.ws.tools.cmd.WSConsume.mainInternal(WSConsume.java:104)
	at org.jboss.ws.tools.cmd.WSConsume.main(WSConsume.java:92)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.jboss.modules.Module.run(Module.java:270)
	at org.jboss.modules.Main.main(Main.java:313)
Caused by: org.apache.cxf.wsdl11.WSDLRuntimeException: Fail to create wsdl definition from : http://api.shapeways.com/v1/wsdl.php
Caused by : WSDLException (at /definitions/message[1]/part[2]): faultCode=INVALID_WSDL: Encountered illegal extension attribute 'nillable'. Extension attributes must be in a namespace other than WSDL's. 
	at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:97)
	at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.build(WSDLDefinitionBuilder.java:69)
	at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:84)
	at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:61)
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:171)
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:138)
	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:283)
	... 12 more
Caused by: javax.wsdl.WSDLException: WSDLException (at /definitions/message[1]/part[2]): faultCode=INVALID_WSDL: Encountered illegal extension attribute 'nillable'. Extension attributes must be in a namespace other than WSDL's.
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseExtensibilityAttributes(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parsePart(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseMessage(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
	at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:237)
	at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:186)
	at org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:78)
	... 18 more
 Topic: Possible Interface for mass changes
Possible Interface for mass changes [message #38066] Sun, 06 November 2011 16:17 UTC
avatar woody64  is currently offline woody64
Messages: 422
Registered: November 2008
Go to my shop
Senior Member
That worked for me to reset a model state:

http://www.shapeways.com/?uri=/udesign/model/saleStatus& model=<your model number>&isPublic=0&forSale=0

1.) Can anybody please check that
2.) Shapeways can you clarify if that interface can be used by experienced designers for our own purpose.

Would allow to generate shop specific interfaces to deal with quick mass changes for our shops.
I.e. materials and pricing which should work similar.

Woody64
 Topic: Security upgrades need on API
Security upgrades need on API [message #36639] Fri, 14 October 2011 15:21 UTC
avatar mctrivia  is currently offline mctrivia
Messages: 808
Registered: September 2010
Go to my shop
Senior Member
I need a way to access any shop through the API without the shops password but only if shops have given me access.

Ideal method: you have a api page where users can check what api's are allowed to access there account. Then I can log in to any account that has checked it using my username and password. Also each API should be restricted in what they can do. I would tell you what I need access to, you would list this on the API access page in bold so people can chose to give access to that or not.

Less ideal but easier to implement. Provide each shop with a 64byte api password. I can sha1 there password with my api code(not my password) and store this in my database and log on using my username and the combined password. In this way if I get hacked the password is only good until my api code is changed, there is no way to get the users api code and they can invalidate my access by changing theres, or if I am found to be unreliable you can shut my access off by deleting mine.

The current method opens up a lot of security risks. I need to store real passwords which means if someone hacks me they have full access to peoples accounts.


Follow me on twitter http://twitter.com/mctrivia or my blog at http://4ddice.blogspot.com/

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.