Get source code. Requires See Source Code permission on file's project, or organization membership on public projects. Each element of the result array is composed of:<ol>- Line number- Content of the line</ol>
import zingu_apis
api = zingu_apis.api("sonarqube")
result = api.fetch("api/sources/show", from=10, key="my_project:/src/foo/Bar.php", to=20)
for item in result:
print(item)
const resp = await fetch("https://sonarcloud.io/api/sources/show?from=10&key=my_project%3A%2Fsrc%2Ffoo%2FBar.php&to=20");
const data = await resp.json();