We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

com.aspose.storage.client.ApiException: {"Message":"Authentication failed!"}

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”, “”, “”);

	String path = "/";
	String storage = null;
	FilesResponse response = api.GetListFiles(path, storage);
	System.out.println(response.toString());
  }

}

Maybe i am getting my key incorrectly?

This topic has been moved to the related forum: https://forum.aspose.cloud/t/com-aspose-storage-client-apiexception-message-authentication-failed/16037