• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to use AWS API Gateway generated SDK with Android Volley

I am using IAM secured API gateway with access key, secret key and an api key. I have previously used the sdk as follows:

BasicAWSCredentials cred = new BasicAWSCredentials("ERQWFSDGFDSTGFDAGVFSD",
"FADSVXXCGDFHBXVDSFDDGFBFSD");
StaticCredentialsProvider credentialsProvider = new StaticCredentialsProvider(cred);
ApiClientFactory factory = new ApiClientFactory().credentialsProvider(credentialsProvider)
.apiKey("GFDSATRFGEDHFGHBDFTY6ERTYGHJKJHDFGTRTUJJH");
final MyTestApiGetwayClient client = factory.build(MyTestApiGetwayClient.class);
ApiResponse apiResponse = client.execute(request);

This works fine.

My question is how to use the SDK with Android volley library (StringRequest/JSONObjectRequest). I don't want to manually calculate the aws authorization signature and add it to the header, but instead I want to use the sdk.

Note: I don't want to use the output model as recommended by AWS as I am not mapping the responses.

Thanks in advance.

Dawit
 
Back
Top Bottom