Dedicated unix timestamp tag (API)

3 posts / 0 new
Last post
puravida's picture
puravida
Jedi Warrior
Offline
Joined: 09/01/2007
Visit puravida's Website

Request: It has been suggested to add a dedicated tag with a unix timestamp in the XML return for API requests. This will make it easier to track time from when the thumbnail was generated and makes it simpler to code automated refreshes based on x-number of days since the last time that particular thumbnail was generated.

Status: Completed

puravida's picture
puravida
Jedi Warrior
Offline
Joined: 09/01/2007
Visit puravida's Website

After a brief study of implementation, I see that this is an easy and minor addition. It does not affect any other pieces of code, so I have gone ahead and implemented this.

To extract this unix timestamp from the API's XML return, you would pull the timestamp from between the StatusCode tag that is between the new ResponseTimestamp tag.

Example XML:

<stw:ResponseTimestamp>
	<stw:StatusCode>0123456789</stw:StatusCode>
</stw:ResponseTimestamp>
gordan
Offline
Joined: 05/29/2008
Visit gordan's Website

The feature is working great! And it was implemented more than ASAP Smile

ShrinkTheWeb® (About STW) is another innovation by Neosys Consulting
Contact Us | PagePix Benefits | Learn More | STW Forums | Our Partners | Privacy Policy | Terms of Use

Announcing Javvy, the best crypto exchange and wallet solution (coming soon!)

©2018 ShrinkTheWeb. All rights reserved. ShrinkTheWeb is a registered trademark of ShrinkTheWeb.