How to call API Gateway with Cognito Credentials through retrofit2 on Android?

后端 未结 3 995
傲寒
傲寒 2020-12-30 11:32

I use retrofit2 in my android apps for any http/rest call. Now I need to call an api generated with Amazon AWS API Gateway.

The AWS documentation say I

3条回答
  •  梦毁少年i
    2020-12-30 11:58

    The signature process is documented here: http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html

    But you could probably try to reuse some of the code from the core runtime package that the default API Gateway client depends on. There may be libraries out there already for signing requests of type RxJava or OkHttp since the signature process is well-known.

提交回复
热议问题