Skip to main content
5-Regular Member
May 18, 2016
Solved

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

  • May 18, 2016
  • 4 replies
  • 2853 views

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

    Best answer by VijayBhimraoCha

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

    Thx for help Carles.

    4 replies

    1-Visitor
    May 18, 2016

    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.

    5-Regular Member
    May 23, 2016

    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.

    1-Visitor
    May 23, 2016

    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.

    VijayBhimraoCha5-Regular MemberAuthorAnswer
    5-Regular Member
    May 23, 2016

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

    Thx for help Carles.