Current section
Files
Jump to
Current section
Files
aws_sign_url
README.md
README.md
# AwsSignUrl
Sign GET request URLs for Amazon's legacy `/onca/xml` API.
For current Amazon product data integrations, see the [Creators API](https://affiliate-program.amazon.com/creatorsapi/docs/en-us/paapiv5-deprecation).
## Usage
Add `aws_sign_url` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:aws_sign_url, "~> 0.2.0"}]
end
```
Use the `call/2` function to add timestamp and signature to the URL.
```elixir
AwsSignUrl.call("http://webservices.amazon.com/onca/xml?foo=bar", "secret_access_key")
#=> "http://webservices.amazon.com/onca/xml?foo=bar&Timestamp=[timestamp]&Signature=some-signature"
```