2

I want to sent an invite to GitHub user to join any particular team in any Organization based on email id.

Currently, I am able to sent an invite for same but using GitHub Username using Octokit Library method

AddOrEditMembership(id, name, role)

Is there any function(Octokit library) or API which will help to sent an invite using Email Id

Christian Baumann
  • 3,188
  • 3
  • 20
  • 37

1 Answers1

0

Is there any function(Octokit library) or API which will help to sent an invite using Email Id

On Octokit, apparently not.
octokit/octokit.net Octokit/Clients/RepoCollaboratorsClient.cs#Invite() methods alwats use a username, not email.

And it reflects the Add Collaborator API, which is also based on username.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250