Get SCM information of source files. Require See Source Code permission on file's project Each element of the result array is composed of:<ol>- Line number- Author of the commit- Datetime of the commit (before 5.2 it was only the Date)- Revision of the commit (added in 5.2)</ol>
import zingu_apis
api = zingu_apis.api("sonarqube")
result = api.fetch("api/sources/scm", 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/scm?from=10&key=my_project%3A%2Fsrc%2Ffoo%2FBar.php&to=20");
const data = await resp.json();