Skip to content

Instantly share code, notes, and snippets.

@ebongzzang
Created April 3, 2017 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebongzzang/4a4c5f8d7d56db4d609b8d21b6e3bb5d to your computer and use it in GitHub Desktop.
Save ebongzzang/4a4c5f8d7d56db4d609b8d21b6e3bb5d to your computer and use it in GitHub Desktop.
KakaoTalk Bot using C++ REST SDK(casablanca)
#include "LazyListener.h"
#include <unistd.h>
int main(void)
{
utility::string_t address = ("http://localhost:8081/keyboard");
uri_builder uri(address);
auto addr = uri.to_uri().to_string();
LazyListener * lazy = new LazyListener(addr);
try
{
lazy->open().wait();
}
catch(const std::exception &e)
{
printf("Error exception:%s\n", e.what());
}
pause();
lazy->close().wait();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment