Home » Developers » Shapeways API » Upload and sell straight away?
Search Search  
Show: Today's Messages    Show Polls    Message Navigator
Upload and sell straight away? [message #33088] Mon, 22 August 2011 19:40 UTC Go to next message
avatar macouno  is currently offline macouno
Messages: 107
Registered: April 2008
Go to my shop
Senior Member
Hi folks,

I'm really thrilled about finding the API, and I've been playing around, but have a question or two (probably more to come).

First and foremost.. What I would love to do is... allow people to modify/generate a model on my website... then it's uploaded to shapeways through the API. The person who modified the model then can buy a print from my shop (and I get a small percentage).

Now... I seem to have the correct connection happening with SOAP. But it looks as if, after upload all you get is "succesfull", and no way to link my customer to the uploaded model.

I also got this message when I first looked at the model "You have not yet agreed to our Terms & Conditions.". That seems to defeat the purpose of an API somewhat to me...

So eh... To me the entire point of the API is... that I can automaticly upload models from my server to shapeways' server... and sell those to the people that generated them (with a small profit). And all that without me having to do anything manually...

Is this possible at all? Am I making sense here?
Re: Upload and sell straight away? [message #33089 is a reply to message #33088 ] Mon, 22 August 2011 19:52 UTC Go to previous messageGo to next message
avatar macouno  is currently offline macouno
Messages: 107
Registered: April 2008
Go to my shop
Senior Member
I have progressed more already...

The only thing that gets in my way is the "confirmation"... that I have to agree to the terms and conditions. If I could just get around that... then this'll work...

Or do you purposely intend us to for instance have to e-mail our customers to tell them the model is available? That would be a bit... eh... well, not so smooth Wink
Re: Upload and sell straight away? [message #33090 is a reply to message #33089 ] Mon, 22 August 2011 20:03 UTC Go to previous messageGo to next message
avatar macouno  is currently offline macouno
Messages: 107
Registered: April 2008
Go to my shop
Senior Member
Ack... I'm too quick asking questions... I read the answer elsewhere.


This line in the SoapAPI.php is the solution:
$result = $this->client->submitModel($this->session, $model, null, 'generated-creator');

It has to be 'generated-creator'... then your model is instantly for sale, and you get the ID of the model as the return value.

Awesome! I'm sure I'll have more questions soon... but for now it looks like it's working!
Re: Upload and sell straight away? [message #33120 is a reply to message #33090 ] Tue, 23 August 2011 08:32 UTC Go to previous messageGo to next message
avatar hans.lambermont  is currently offline hans.lambermont
Messages: 48
Registered: June 2010
Go to all my models
Member
I work here
macouno wrote on Mon, 22 August 2011 20:03


This line in the SoapAPI.php is the solution:
$result = $this->client->submitModel($this->session, $model, null, 'generated-creator');
It has to be 'generated-creator'... then your model is instantly for sale, and you get the ID of the model as the return value.


Cool, I see you found the workaround for the T&C issue.

-- Hans
Re: Upload and sell straight away? [message #33133 is a reply to message #33120 ] Tue, 23 August 2011 10:34 UTC Go to previous messageGo to next message
avatar macouno  is currently offline macouno
Messages: 107
Registered: April 2008
Go to my shop
Senior Member
Yes I did, thanks for having a look anyway.

You can see what I've been up to here: http://www.shapewright.com/

I haven't really run into any issues since yesterday. Would just like to figure out a quick way to calculate the volume of a model myself (for price estimates).

I also haven't found a way to set in which materials a print should be available. I don't mind customers picking themselves, but it might be a good option for the API.
icon14.gif  Re: Upload and sell straight away? [message #33500 is a reply to message #33133 ] Mon, 29 August 2011 13:48 UTC Go to previous messageGo to next message
avatar electrobloom  is currently offline electrobloom
Messages: 57
Registered: April 2009
Go to my shop
Member
This is just brilliant! Surprised


The Digital Gardener. Balancing technology and nature. Planting digital flowers. Manufactured by 3D printing. Customized by you.
Re: Upload and sell straight away? [message #37853 is a reply to message #33500 ] Thu, 03 November 2011 13:46 UTC Go to previous message
avatar elchan  is currently offline elchan
Messages: 9
Registered: October 2011
Go to my shop
Junior Member
The BUY button doesn't seem to do anything.

 
   
Previous Topic:Security upgrades need on API
Next Topic:Possible Interface for mass changes