// Get clientId and clientSecret from https://dashboard.aspose.cloud/
String clientId = "XXXXX-XXXXX-XXXXX-XXXXX-f5a14a4b6466";
String clientSecret = "XXXXXXXXXXXXXXXXXXXXXXXXXXX";

// create an instance of Aspose.3D cloud
ThreeDCloudApi threeDCloudApi  = new ThreeDCloudApi("client_credentials", clientId, clientSecret);

// name of input OBJ file
String inputFile = "myInput.obj";

// resultant STL format
String newformat = "stlascii";

// name of resultant file
String resultantFileName = "resultant.stl";

// Storage for resultant file. If no information for storage is specified, then default storage is used.
String storage = "internal";
		    		
// initialize the conversion operation
var response = threeDCloudApi.postConvertByFormat(inputFile, newformat, resultantFileName, folder, true, storage);