Uploaded
This commit is contained in:
pare
e3fa9829d3
commit
a8e699622a
S'han modificat 1 arxius amb 5 adicions i 1 eliminacions
6
test.py
6
test.py
|
@ -30,7 +30,7 @@ if __name__ == '__main__':
|
||||||
}
|
}
|
||||||
|
|
||||||
params = dict()
|
params = dict()
|
||||||
params['token'] = 'token_here'
|
params['token'] = ''
|
||||||
formatted_params = urlencode(params)
|
formatted_params = urlencode(params)
|
||||||
|
|
||||||
endpoint = api_base_url + '/api/v1/repos/{0}/{1}/contents/{2}?{3}'.format(owner, repo, filename, formatted_params)
|
endpoint = api_base_url + '/api/v1/repos/{0}/{1}/contents/{2}?{3}'.format(owner, repo, filename, formatted_params)
|
||||||
|
@ -43,5 +43,9 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
if response is not None:
|
||||||
|
|
||||||
|
print(f'request status code: {response.status_code},\n\n{response.content}')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Referencia en una nova incidència