Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukabratos/push-notifications-rust
Pusher Beams Rust Server SDK
https://github.com/lukabratos/push-notifications-rust
crate rust rust-crate rust-lang rust-language rust-library rustlang
Last synced: about 2 months ago
JSON representation
Pusher Beams Rust Server SDK
- Host: GitHub
- URL: https://github.com/lukabratos/push-notifications-rust
- Owner: lukabratos
- Created: 2018-07-10T18:09:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-18T06:58:27.000Z (over 6 years ago)
- Last Synced: 2024-10-12T15:20:58.194Z (3 months ago)
- Topics: crate, rust, rust-crate, rust-lang, rust-language, rust-library, rustlang
- Language: Rust
- Homepage: https://www.pusher.com/beams
- Size: 11.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pusher Beams Rust Server SDK
[![Build Status](https://travis-ci.org/lukabratos/push-notifications-rust.svg?branch=master)](https://travis-ci.org/lukabratos/push-notifications-rust)
```toml
[dependencies]
beams = "0.1.0"
```## Usage
```rust
extern crate beams;use beams::publish;
pub fn main() {
let interests = vec![String::from("pizza"), String::from("avocado")];let publish_request = r#"{
"apns": {
"aps": {
"alert": "Hello!"
}
},
"fcm": {
"notification": {
"title": "Hello!",
"body": "Hello, world!"
}
}
}"#;publish(
String::from("id"),
String::from("key"),
interests,
publish_request,
);
}
```