Skip to content
This repository was archived by the owner on Sep 25, 2021. It is now read-only.
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

258 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status badge

Engine

Full Documentation

Build Slack Apps in modern C++

Connect your desktop app, backend, or game to Slack. Engine provides a statically typed, reliable, and simple to use C++ interface to Slack’s Web, Real Time, and Events APIs using modern, idiomatic C++.

Prerequisites

A C++14 capable compiler (tested against gcc 4.9, clang 3.6), CMake 2.8. Conan for installing dependencies.

Example code

Here is a quick example that you can run to post a message into #general on your Slack team. You'll need a testing token, which you should pass as an environment variable called SLACK_TOKEN.

#include <iostream>
#include <slack/slack.h>

int main()
{
    slack::web web_client{std::getenv("SLACK_TOKEN")};
    auto response = web_client.chat.postMessage("#general", "Hello, world!");

    std::cout << response.message->text << std::endl;

    return 0;
}

License

MIT

Disclaimer

This library has only begun, and there is yet a lot that is missing. It's still usable, but you might not find everything is as you would like it.

About

A modern C++ library for building modern Slack-enabled applications

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages