Hi all,
I am trying to call 2 resources on AWS API gateway from an OSGI bundle.
I don't know if I am going down the wrong track by even trying.
It is easy to create an OSGI for directly interacting with S3, and DynamoDB from an OSGI bundle.
It is also easy to generate an Android-Sdk to access the Api Gateway.
However, I have never tried to use android java code inside of an OSGI.
One can import using Maven the aws SDK into an OSGI project.
I have access from there to com.amazonaws.services.apigateway.AmazonApiGatewayClient
But I cannot find any class methods to make a GET call to API gateway.
I had thought to use
BasicAWSCredentials basicAWSCredentials = new BasicAWSCredentials(ACCESS_KEY_ID,SECRET_ACCESS_KEY);
AmazonApiGatewayClient amazonApiGatewayClient = new AmazonApiGatewayClient(basicAWSCredentials);
GetMethodRequest getMethodRequest = new GetMethodRequest();
getMethodRequest.setHttpMethod("get");
amazonApiGatewayClient.getMethod(getMethodRequest);
amazonApiGatewayClient.setEndpoint("http://*******");
I had thought getMethodRequest() might enable me to build the required GET, but have ended up going no where.
Regards
Clive Stewart