rmessenger 0.0.4

A Rust Wrapper for the FaceBook Messenger Bot API
docs.rs failed to build rmessenger-0.0.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: rmessenger-0.0.3

rmessenger

MIT License

##A Rust Wrapper for the FaceBook Messenger Bot API Facebook's Messenger Platform
crates.io: rmessenger

###About you can:

  • send text message
  • send generic message
  • send button message
  • send file url
  • send audio url

###Installation

####Cargo.toml

rmessenger = "0.0.3"

###Usage

####Send text message https://developers.facebook.com/docs/messenger-platform/send-api-reference/text-message

extern crate rmessenger;
use rmessenger::bot;

fn main() {
    let bot = bot::Bot::new("<YOUR ACCESS TOKEN>", "<YOUR APP SECRET>");
    bot.send_text_message("<recipient_id>", "<message>");
}

####Send generic message

extern crate rmessenger;
use rmessenger::bot;

fn main() {
    let bot = bot::Bot::new("<YOUR ACCESS TOKEN>", "<YOUR APP SECRET>");
    bot.send_generic_message("<recipient_id>>",
                             "[{'title': 'example',
                                'image_url': 'https://petersfancybrownhats.com/company_image.png'
                                }]");
}

elements param is &str

###TODO

  • send image
  • send file
  • send audio
  • send video