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

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

VijayBhimraoCha
5-Regular Member

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

1 ACCEPTED SOLUTION

Accepted Solutions
VijayBhimraoCha
5-Regular Member
(To:CarlesColl)

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.

VijayBhimraoCha
5-Regular Member
(To:CarlesColl)

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.

VijayBhimraoCha
5-Regular Member
(To:CarlesColl)

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

Thx for help Carles.

Announcements