cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

Create application key and access its value Via REST call from .net application

VijayBhimraoCha
7-Bedrock

Create application key and access its value Via REST call from .net application

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

ACCEPTED SOLUTION

Accepted Solutions

Could manage to do that using OOTB EntityServices CreateApplicationKey and using REST API.

Thx for help Carles.

View solution in original post

4 REPLIES 4

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.

Announcements


Top Tags