Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello,
The requirement is to create ApplicationKey and get its value from .net application.
Don't want to add too much API level dependency on the .net application.
So the REST call to create and access ApplicationKey could be an option.
Is this possible and any related code/example?
Thx.
Vijay
Solved! Go to Solution.
Could manage to do that using OOTB EntityServices CreateApplicationKey and using REST API.
Thx for help Carles.
Here https://www.dropbox.com/s/0s14wnwxw2g52gb/ThingShapes_wupAppKeysTS.xml?dl=0 you can find the ThingShape I use to create AppKeys dinamically and to query for it's value. You can find the end points to create and query values.
Where userAppKey_wupAppKeysTS property it's a appKey for a user with Query and create AppKeys.
Thx Carles for quick reply. The usecase is to call it through REST API from .net application with no compile and run time dependency on thingworx code. Not sure if this is true in above approach, unless missing something here.
The sample code it's on Server Side TW Javascript, but using REST API from it, you can replicate the same calls from .net for sure.
Could manage to do that using OOTB EntityServices CreateApplicationKey and using REST API.
Thx for help Carles.