LibTgBotPP
 All Classes Namespaces Files Functions Variables Typedefs Macros
http_build_query.cc
Go to the documentation of this file.
1 #include "http_build_query.h"
2 
3 std::string http_build_query(std::map<std::string, std::string> data) {
4 
5  std::string result = "";
6 
7  std::map<std::string, std::string>::iterator it;
8 
9  for (it = data.begin(); it != data.end(); it++) {
10  result = result + it->first + "=" + it->second + "&";
11  }
12 
13  return result;
14 }
std::string http_build_query(std::map< std::string, std::string > data)