Created
April 3, 2017 09:26
-
-
Save ebongzzang/4a4c5f8d7d56db4d609b8d21b6e3bb5d to your computer and use it in GitHub Desktop.
KakaoTalk Bot using C++ REST SDK(casablanca)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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