double-break / spapi-php

Amazon Selling Partner API PHP Client
MIT License
56 stars 48 forks source link

Data decryption #8

Closed JasonYe88 closed 3 years ago

JasonYe88 commented 3 years ago

The data returned when I request Amazon is encrypted, how should I decrypt the data? Thank you for your guidance

MST1122 commented 3 years ago

hi @yexueping,

I have just make a commit to the master repository with Feed Upload, Download, Encryption, and Decryption all functionalities are implemented.

It just needs an approving review from @lyubo-slavilov to be available to everyone.

JasonYe88 commented 3 years ago

thank you very much

JasonYe88 commented 3 years ago

I want to request getReports method,but The return value needs to be decrypted, can the decryption be encapsulated?

MST1122 commented 3 years ago

@yexueping yes, your required functionality is also implemented under Feed->downloadFeedProcessingReport() function. it will download the report and decrypt it.

lyubo-slavilov commented 3 years ago

Hi guys, First of all let me say thanks to @MST1122 for cracking this. The code is perfectly fine, but we need to make some refactoring in order it to fit the aerogeneration process used to generate the clients. Me and @MST1122 already had Google Meet call and discussed the details. So ETA end of the day we could have new version for the client ;)

Thanks again.

JasonYe88 commented 3 years ago

@MST1122 thank you very much

lyubo-slavilov commented 3 years ago

@JasonYe88 PR is merged. New composer version v1.0.4 is released.