Async Widget Data Retrieval

I am thinking about passing the widget ID, but how do I retrieve the widget data by it ID?

My Context:

I am just starting with Orchard creating my own website.

And I am creating a widget that accesses LinkedIn and retrieves my profile.

Until here everything is simple, the problem is that I want the page to return immediately to the client.

So I configured the widget the send to the page a KnockoutJS template and a Script that retrieves the data async and applies the template on the client.

For this I created a Controller that retrieves the data using JSON. But here is the problem, all the configuration data and context is configured in the widget, and when I access the endpoint to retrieve my profile data, I don't know what to return.

I am thinking about passing the widget ID, but how do I retrieve the widget data by it ID?

PS: Anyone interested in the same functionality can ask me for the module. :)

I am thinking about passing the widget ID, but how do I retrieve the widget data by it ID?

My Context:

I am just starting with Orchard creating my own website.

And I am creating a widget that accesses LinkedIn and retrieves my profile.

Until here everything is simple, the problem is that I want the page to return immediately to the client.

So I configured the widget the send to the page a KnockoutJS template and a Script that retrieves the data async and applies the template on the client.

For this I created a Controller that retrieves the data using JSON. But here is the problem, all the configuration data and context is configured in the widget, and when I access the endpoint to retrieve my profile data, I don't know what to return.

I am thinking about passing the widget ID, but how do I retrieve the widget data by it ID?

PS: Anyone interested in the same functionality can ask me for the module. :)