Home » Developers » Shapeways API »

How to add an html description?

Search Search  
Show: Today's Messages    Show Polls    Message Navigator
How to add an html description? [message #77382] Wed, 23 October 2013 16:43 UTC
avatar UtorCase  is currently offline UtorCase
Messages: 43
Registered: October 2013
Go to my shop
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...

Previous Topic:How to add a Youtube video via the API?
Next Topic:Sales Notification API



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.