This is a simple C# project that fetches a GitHub user's recent activity using GitHub’s public API.
- Takes a GitHub username as input.
- Builds a URL to request that user's recent events from GitHub.
- Sends a GET request to GitHub’s API.
- Reads the JSON response.
- Converts the response into C# objects.
- Returns a list of events that include useful info like event type, repository name, action.
- Someone pushed code (
PushEvent) - Starred a repo (
WatchEvent)
idtyperepopayload.actionandpayload.size(for push events manily)created_at
This makes the project cleaner, more readable, and easier to learn from.
- .NET installed
- Visual Studio or any C# editor
- Newtonsoft.Json package (for deserializing JSON)
- Open the project in Visual Studio.
- Run the app.
- Enter any GitHub username when asked.
- The app fetches and shows their recent GitHub events.