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: 4 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-18T06:58:27.000Z (almost 7 years ago)
- Last Synced: 2025-01-20T12:05:11.955Z (5 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
[](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,
);
}
```