How to log into GitHub with REST API

Hi !

I have been trying to play with the GitHub REST API to develop a feature in a project.
I have been reading the documentation here : Quickstart for GitHub REST API - GitHub Docs
The examples shown are always using cURL, which allows the use of flags and such.

It’s probably really easy to do but I cannot figure out how to log in with a username and password from a Unity WebRequest into the github account and access things like issues and repos.

Could somebody give me any pointers ?

The login command is curl -i -u <username:password>

The equivalent of this in WebRequest terms is sending a get request to https://api.github.com/users/your_username with an authentication string that is username:password
[
Curl to C# user flag - Stack Overflow](http:// Curl to C# user flag - Stack Overflow)

You can also give the Octokit.Net library a try.

Thank you ! I actually ended up researching what headers are, I was very un-documented on the subject, which is why I was having trouble. It’s all good now ! ^^