IGitHubGraphqlServiceQueryRepositoriesByTopic Method

QueryRepositoriesByTopic 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<TopicSearchData> QueryRepositoriesByTopic(
	string topic,
	int amount = 10,
	string? cursor = null,
	int tries = 3
)

Parameters

topic  String
topic to search for
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

TaskTopicSearchData
list of repositories in the form of TopicSearchData

Exceptions

BadHttpRequestExceptionIf it fails after tries amount of retries throw

See Also