API method: get_store

This ToldYa API method returns the HTML code needed to render your ToldYa store.

Request Method API Endpoint URL
GET http://toldya.com/api/

Required Parameters

Parameter Data Type Length Notes
action string   get_store
api_key string   Your API key

Example Request

http://toldya.com/api/?api_key=xxx&action=get_store

Example Response

The following shows example XML returned by the API for this method. To render the store properly on your site or blog, be sure to restore the HTML entities in the code first. Using PHP, for example you can restore the entities using the built-in html_entity_decode method.

<toldyaapiresponse>
    <url>https://www.toldya.com/api/?api_key=xxx&amp;action=get_store</url>
    <status>SUCCESS</status>
    <message/>
    <code>&amp;lt;object classid=&amp;quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&amp;quot; codebase=&amp;quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;param name=&amp;quot;movie&amp;quot; value=&amp;quot;http://www.toldya.com/resources/swf/stores/1234.swf&amp;quot; /&amp;gt;&amp;lt;param name=&amp;quot;quality&amp;quot; value=&amp;quot;high&amp;quot; /&amp;gt;&amp;lt;param name=&amp;quot;flashVars&amp;quot; value=&amp;quot;fv_url=http://www.toldya.com/&amp;amp;fv_id=1234&amp;quot; /&amp;gt;&amp;lt;embed src=&amp;quot;http://www.toldya.com/resources/swf/stores/1234.swf&amp;quot; width=&amp;quot;400&amp;quot; height=&amp;quot;300&amp;quot; quality=&amp;quot;high&amp;quot; pluginspage=&amp;quot;http://www.macromedia.com/go/getflashplayer&amp;quot; type=&amp;quot;application/x-shockwave-flash&amp;quot; flashvars=&amp;quot;fv_url=http://www.toldya.com/&amp;amp;fv_id=1234&amp;quot;&amp;gt;&amp;lt;/embed&amp;gt;&amp;lt;/object&amp;gt;
	</code>
</toldyaapiresponse>

 


back to top