Skip to main content
1-Visitor
September 5, 2019
Solved

Calling a ThingsWorx service from Unity

  • September 5, 2019
  • 3 replies
  • 1581 views

Hello!

 

I'd like to know if it is possible to run a ThingsWorx service through an external application (like Unity). Ideally I'd want to keep the scripting of the service on ThingsWorx for various reasons, so it would really just be to do something like "MyThing.GetService("MyServiceName").Run();" (with the data returned by the service being re-routed to the external app obviously) or something along those lines. 

 

Thanks!

Best answer by PEHOWE

Hello @Diveye ,

 

I have not tried what you are requesting, ThingWorx does provide access through a RESTapi.

I believe the Article - CS249622 address your question. Have you reviewed this article.

You should be able to see what is visible using the browser:

  • <Host Info>/Thingworx/Things/<thing name>/ServiceDefinitions/<service name>

For a method of testing you could use a tool like "Postman" to make the REST api calls.

3 replies

PEHOWE17-PeridotAnswer
17-Peridot
September 6, 2019

Hello @Diveye ,

 

I have not tried what you are requesting, ThingWorx does provide access through a RESTapi.

I believe the Article - CS249622 address your question. Have you reviewed this article.

You should be able to see what is visible using the browser:

  • <Host Info>/Thingworx/Things/<thing name>/ServiceDefinitions/<service name>

For a method of testing you could use a tool like "Postman" to make the REST api calls.

16-Pearl
September 20, 2019

@Diveye 

I just wanted to follow up to see if previous response was helpful for your question?

 

If so, please indicate the appropriate response as the Accepted Solution for the benefit of other Community members who have the same question. If you are still experiencing issues, please do let us know your questions or concerns.

 

Thanks,

Vibhuti