IGitHubGraphqlServiceQueryRepositoriesByName 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#
Task<SpiderData> QueryRepositoriesByName(
	string name,
	int amount = 10,
	string? cursor = null,
	int tries = 3
)

Parameters

name  String
 
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

Exceptions

BadHttpRequestExceptionIf it fails after tries amount of retries throw

See Also