Closed ahmedsaheed closed 2 years ago
Hi @ahmedsaheed,
Do you have the above code inside a main method! Try to run and see the actual error not the auto completion issues.
package com.base;
import com.clivern.wit.api.App;
import com.clivern.wit.api.endpoint.AppEndpoint;
import com.clivern.wit.util.Config;
import com.clivern.wit.Wit;
public class Main {
/**
* @param args The command line arguments.
**/
public static void main(String []args) {
Config config = new Config();
config.loadPropertiesFile("config.properties");
config.configLogger();
Wit wit = new Wit(config);
App getApp = new App(AppEndpoint.GET);
// To Use another App Id different from the one on your properties file
// getApp.setAppId("Your Custom App ID Here");
// To Use Another Access Token Different From The one on your properties file
// getApp.setAccessToken("Your Custom Access Token Here");
String result = "";
String error = "";
if( wit.send(getApp) ){
result = wit.getResponse();
}else{
error = wit.getError();
}
}
}
Thanks very much. It's all fixed. i neglected the exceptions earlier. Thanks
Describe the bug Whenever i try to call any method after instantiating its class. It doesn't work. To Reproduce Steps to reproduce the behavior: NOTE: When adding the gradle dependency, i have use
implementation 'com.clivern:wit-java:1.0.0'
instead ofcompile 'com.clivern:wit-java:1.0.0'
Config config = new Config();
''config.loadPropertiesFile("config.properties");
orconfig.configLogger();
wit.send(getApp)
Expected behavior This methods should be callable once instanciated
Screenshots Here you'd see that my editor has highligted those method with red as they are unresolveable.
I'm not sure this issue is from my end, any sort of help would be appreciated