MCPcopy Create free account
hub / github.com/comaps/comaps / TestOSMUser

Method TestOSMUser

libs/editor/server_api.cpp:150–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150bool ServerApi06::TestOSMUser(std::string const & userName)
151{
152 std::string const method = "/user/" + url::UrlEncode(userName);
153 return m_auth.DirectRequest(method, false).first == OsmOAuth::HTTP::OK;
154}
155
156UserPreferences ServerApi06::GetUserPreferences() const
157{

Callers 1

UNIT_TESTFunction · 0.80

Calls 2

UrlEncodeFunction · 0.85
DirectRequestMethod · 0.80

Tested by

no test coverage detected