Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nithinbekal/aws-sign-url
Sign Amazon REST API request URLs
https://github.com/nithinbekal/aws-sign-url
amazon amazon-api amazon-web-services aws elixir
Last synced: about 1 month ago
JSON representation
Sign Amazon REST API request URLs
- Host: GitHub
- URL: https://github.com/nithinbekal/aws-sign-url
- Owner: nithinbekal
- Created: 2016-11-22T08:35:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-05T07:04:30.000Z (almost 8 years ago)
- Last Synced: 2024-12-02T18:58:18.428Z (about 2 months ago)
- Topics: amazon, amazon-api, amazon-web-services, aws, elixir
- Language: Elixir
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AwsSignUrl
Sign Amazon REST API request URLs.
## Usage
Add `aws_sign_url` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:aws_sign_url, "~> 0.1.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"
```