Article - CS289405

How to call ContentLoader function from ThingWorx Platform when developing extension using ThingWorx Extension SDK

Modified: 17-Jul-2018   

Applies To

  • ThingWorx Platform 8.3 to 9.0

Description

  • How to call ContentLoader function from ThingWorx Platform in when developing extension using ThingWorx Extension SDK
  • What Java classes are to be imported to use the ContentLoader functions?
  • When attempting to create the post using: myContentLoader.PostJSON(url, bodyMain, null, null, head, true, false, 10.0, false, null, null, false, null, null, null);
  • Following compile time error is thrown in the Eclipse IDE :
The method PostJSON(String, JSONObject, String, String, JSONObject, Boolean, Boolean, Double, Boolean, String, String, Boolean, String, Integer, String) in the type ContentLoader is not applicable for the arguments (String, JSONObject, null, null, JSONObject, boolean, boolean, double, boolean, null, null, boolean, null, null, null)
This is a PDF version of Article CS289405 and may be out of date. For the latest version click https://www.ptc.com/en/support/article/CS289405?language=en&posno=2&q=java contentloader&source=search