Create connection using API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Create connection using API
Hi All
I want to use an API from another application...
how do I create a connector (or something) to use it?
Any tips?
Thanks,
Anselmo.
Solved! Go to Solution.
- Labels:
-
Connectivity
-
Extensions
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I would start with the GetText or PostText services before using the JSON ones and output the result directly as String to see if the call is succesfully retrieving information.
Then do the JSON call and you can then do jsonObject,element to get values out of it.
Now please note if the result coming back is a JSON Array, thingworx adds .array so it would be jsonObject.array.element
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Sounds like you want to create an extension, but you could just start with a Thing and create services that invoke API calls, then make that into a template and that into an extension.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Wait...but when I create a Thing, what kind of thing template should I use?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Use the Generic Thing Template and then use the Content Loader functions to create REST calls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Almost there...The result are coming as a blank JSON file.
The question is : are we not able to see the result of these functions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I would start with the GetText or PostText services before using the JSON ones and output the result directly as String to see if the call is succesfully retrieving information.
Then do the JSON call and you can then do jsonObject,element to get values out of it.
Now please note if the result coming back is a JSON Array, thingworx adds .array so it would be jsonObject.array.element
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks!! I managed how to do it! (:
