This project will introduce you to the REST API utilized by the ThingWorx platform.
Following the steps in this guide, you will be able to connect to the ThingWorx platform and make REST calls to call Services, update Properties, and perform a number of actions for your IoT applications.
We will teach you how to use the ThingWorx REST API to create a more robust application. With the REST API you can leverage the full power of the ThingWorx Foundation server with simple HTTP requests. The REST API can easily be explored using a command line tool such as curl, a browser plugin like Postman, or any preferred programming language.
|Est. Time||30 Minutes|
|Published||June 13, 2018|
You'll learn how to
- Create new Things on a ThingWorx Foundation Server
- Add Properties to Things
- Access Property values
- Execute custom Services
Things used in this project
This guide requires a connection to the ThingWorx Foundation.
It assumes that you are utilizing the 30-day hosted Foundation server or the 120-day downloaded trial.
USE REST API TO ACCESS THINGWORX
- Step 1: REST API Design
- Step 2: REST Client
- Step 3: Create Application Key
- Step 4: Create New Thing
- Step 5: Add Property to Thing
- Step 6: Set Property Value
- Step 7: Get Latest Property Value
- Step 8: Call Custom Service
- Step 9: Troubleshooting
- Step 10: Authentication Tips
- Step 11: Next Steps