Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xinz/ex_aliyun_mns
Alibaba Cloud MNS Elixir SDK
https://github.com/xinz/ex_aliyun_mns
Last synced: 2 months ago
JSON representation
Alibaba Cloud MNS Elixir SDK
- Host: GitHub
- URL: https://github.com/xinz/ex_aliyun_mns
- Owner: xinz
- License: mit
- Created: 2019-12-31T04:21:33.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-23T05:22:45.000Z (11 months ago)
- Last Synced: 2024-05-16T03:17:06.134Z (8 months ago)
- Language: Elixir
- Homepage:
- Size: 141 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ExAliyun.MNS
**Alibaba Cloud Message Notification Service SDK for Elixir**
## Installation
```elixir
def deps do
[
{:ex_aliyun_mns, "~> 1.0"}
]
end
```## Configuration
Set the authorization configuration in `config` file as a global setting, for example:
```elixir
config :ex_aliyun_mns,
access_key_id: "",
access_key_secret: "",
host: "https://xxxx.mns.us-east-1.aliyuncs.com"
```Or, dynamically set or override the authorization configuration when execute operation via `config_overrides` option, for example:
```elixir
ExAliyun.MNS.create_queue(
"test-queue",
config_overrides: [
access_key_id: "",
access_key_secret: "",
host: ""
]
)
```## Usage
Please refer Alibaba Cloud Message Notification Service [API reference](https://www.alibabacloud.com/help/doc-detail/27477.htm) for details, this library provides the corresponding functions via [`ExAliyun.MNS`](https://hexdocs.pm/ex_aliyun_mns/ExAliyun.MNS.html) module.