Hi i am trying to connect to get my 3rd party storage file list.
here is my errors
Exception in thread "main" com.aspose.storage.client.ApiException: {"Message":"Authentication failed!"}
at com.aspose.storage.client.ApiInvoker.invokeAPI(ApiInvoker.java:284)
at com.aspose.storage.api.StorageApi.GetListFiles(StorageApi.java:587)
at wordleMain.aposeCloudTest.main(aposeCloudTest.java:12)
Here is my code
package wordleMain;
import com.aspose.storage.api.StorageApi;
import com.aspose.storage.model.FilesResponse;
public class aposeCloudTest {
public static void main(String[] args) {
StorageApi api = new StorageApi("https://api.aspose.cloud/v1.1", "<key>", "<sid>");
String path = "/";
String storage = null;
FilesResponse response = api.GetListFiles(path, storage);
System.out.println(response.toString());
}
}
Maybe i am getting my key incorrectly?