| 67 | } |
| 68 | |
| 69 | string BuildPostRequest(std::initializer_list<std::pair<string, string>> const & params) |
| 70 | { |
| 71 | string result; |
| 72 | for (auto it = params.begin(); it != params.end(); ++it) |
| 73 | { |
| 74 | if (it != params.begin()) |
| 75 | result += "&"; |
| 76 | result += it->first + "=" + url::UrlEncode(it->second); |
| 77 | } |
| 78 | return result; |
| 79 | } |
| 80 | |
| 81 | // static |
| 82 | bool OsmOAuth::IsValid(string const & ks) |
no test coverage detected