a async client for sms platform
APACHE-2.0 License
an async client for sms platform, header only and c++17 is needed.
//the sms template definition is: std::string TEMPLATE_TEXT = u8"xx" in cons.h
//notice: the text must be utf8
//cons.h
std::string appkey = "23ea67fdc73f9aa82k83b99dct144c5f";
std::string phone = "12345678900";
std::string code = "123456";
client_factory& factory = client_factory::instance();
for (size_t i = 0; i < 2; i++) {
auto client = factory.new_client();
client->send(appkey, phone, code);
}
factory.run();