Skip to content

Download end point API #2

@choo-kity-pok

Description

@choo-kity-pok

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions