1. Download our Official Android App: Forums for Android!

How to use AWS API Gateway generated SDK with Android Volley

Discussion in 'Android Development' started by Dawit Abraham, Sep 18, 2017.

  1. Dawit Abraham

    Dawit Abraham Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Sep 18, 2017

    Sep 18, 2017
    2
    0
    5
    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
     

    Advertisement

  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,853
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,853
    11,459
    1,988
    Male
    Software developer
    South West of England
  3. Dawit Abraham

    Dawit Abraham Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Sep 18, 2017

    Sep 18, 2017
    2
    0
    5
    Thank you for your response but it doesn't really solve my problem. I don't have a problem using SSL with Volley. I only want to know how to to implemented the specific SDK with Volley.
     

Share This Page

Loading...