MCPcopy Create free account
hub / github.com/ReversecLabs/C3 / ListChannels

Method ListChannels

Src/Common/FSecure/Github/GithubApi.cpp:58–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58std::map<std::string, std::int64_t> FSecure::GithubApi::ListChannels()
59{
60 std::map<std::string, std::int64_t> channelMap;
61 std::string url = OBF("https://api.github.com/user/repos");
62
63 json response = SendJsonRequest(url, NULL, Method::GET);
64
65 for (auto& channel : response)
66 {
67 std::string channelName = channel[OBF("name")];
68
69 std::int64_t cId = channel[OBF("id")];
70
71 channelMap.insert({ channelName, cId });
72 }
73
74 return channelMap;
75}
76
77std::string FSecure::GithubApi::CreateChannel(std::string const& channelName)
78{

Callers 1

CreateChannelMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected