You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to automate my calls to the SP-API by using AWS SDK. For example, for the getMarketplaceParticipations operation, I came up with the following functioning code, which signs the request headers using the signature-v4 module of AWS SDK.
However, the code has a bit more plumbing than I would like and I have a feeling that I could have accomplished this simpler (with less code) if I figured out a way to accomplish this using the API Gateway Client.
So my question is, given the following code, is it possible to simplify it using API Gateway Client or any other way?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to automate my calls to the SP-API by using AWS SDK. For example, for the
getMarketplaceParticipations
operation, I came up with the following functioning code, which signs the request headers using thesignature-v4
module of AWS SDK.However, the code has a bit more plumbing than I would like and I have a feeling that I could have accomplished this simpler (with less code) if I figured out a way to accomplish this using the API Gateway Client.
So my question is, given the following code, is it possible to simplify it using API Gateway Client or any other way?
Beta Was this translation helpful? Give feedback.
All reactions