Added "Custom Data" Support to Notify Callback Feature

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

I have added the ability to pass custom data with a notify callback request and have that data passed back with the notify action.

The purpose of this is to pass a listingID or other screenshot specific data that identifies it or otherwise provides information to take action upon the delivery of the associated screenshot.

The sample STW API Library has been updated with this support in v2.0.9 and has been thoroughly tested and confirmed in a short BETA period.

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

Someone asked for a specific example of what this feature can be used to do, so here was my response:

Quote:
I don't really have many examples of "how" it can be used. I only know the one use case for why it was requested. In that case, the developer wanted a tighter integration but something to where they could pass some data and then immediately update some records in the database on delivery of the screenshot. So, they are passing a "listingID" and the instant the screenshot is delivered, they are noting that so the system can perform an action and notify the user. This way, they don't have to rely on "polling" their screenshot storage location for the screenshot and will know the instant it is ready. This eliminates the need to "poll" our service (with the notify callback) and the need to poll the user's storage (by correlating the custom data in the notify). Generally speaking, this is overkill for most sites that can just check for the screenshot when someone visits a page or requests it, but it makes for a very fast integration for screenshots for time-sensitive implementations.

That is the basic usefulness of passing custom data, but there may be other creative uses we haven't thought of yet. Wink

I wanted to pass this along for anyone else who may also be wondering...

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

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