Client

class tokki.appveyor.AppVeyorClient(token, *args, **kwargs)

Represents a client for accessing the information of a single user with their v1 token.

Parameters
  • token (str) – The v1 token for accessing the user information.

  • useragent (str) – The User-Agent header that the REST calls should use.

async get_repo(slug)

Gets a project from the AppVeyor account.

Parameters

slug (str) – The owner/repo to get the information from.

Returns

The project of the user if is present on the account.

Return type

AppVeyorRepo

Raises

aiohttp.ClientResponseError – If the API response returned something other than a 1XX-2XX-3XX code.