| 117 | } |
| 118 | |
| 119 | void FSecure::GithubApi::DeleteFile(FileEntry const& file) |
| 120 | { |
| 121 | auto url = OBF("https://api.github.com/repos/") + this->m_Username + OBF("/") + this->m_Channel + OBF("/contents/") + file.m_Name; |
| 122 | |
| 123 | json j; |
| 124 | j[OBF("message")] = OBF("Initial Commit"); |
| 125 | j[OBF("sha")] = file.m_Sha; |
| 126 | |
| 127 | SendJsonRequest(url, j, Method::DEL); |
| 128 | } |
| 129 | |
| 130 | void FSecure::GithubApi::DeleteAllFiles() |
| 131 | { |
nothing calls this directly
no outgoing calls
no test coverage detected