-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Go get the latest Geth release from GitHub repo [go-ethereum]
https://github.com/ethereum/go-ethereum/releases
With a Python code made a request to the Github API releases/latest
endpoint.
Documentation for API request:
https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#get-the-latest-release
From the JavaScript [Code samples for "Get the latest release"] found on the URL under, convert with ChatGPT the code in Python.
To generate the token:
https://docs.github.com/en/rest/guides/getting-started-with-the-rest-api?apiVersion=2022-11-28#about-tokens
The token we want to save it in a local environment variable. The token should not be included in the code, should be taken from the environment variable.
En utilisant Code Zsh-env ajoute la variable token.
I am supposed to have the proper Status 200