GitHubGraphqlServiceQueryRepositoriesByName Method

QueryRepositoriesByName sends a graphql request to the github api and returns on success and otherwise handles the error and retries if necessary.

Definition

Namespace: spider.Services
Assembly: spider (in spider.exe) Version: 1.0.0+fc7a1b35c0f8728ecbe7255d9fa5b4d3324ce3c6
C#
public Task<SpiderData> QueryRepositoriesByName(
	string repositoryName,
	int amount = 10,
	string? cursor = null,
	int tries = 3
)

Parameters

repositoryName  String
Keyword to search by
amount  Int32  (Optional)
Amount of repositories to return
cursor  String  (Optional)
The cursor to start the search from
tries  Int32  (Optional)
amount of retries before failing

Return Value

TaskSpiderData
list of repositories in the form of SpiderData

Implements

IGitHubGraphqlServiceQueryRepositoriesByName(String, Int32, String, Int32)

Exceptions

BadHttpRequestExceptionIf it fails after tries amount of retries throw

See Also