Index
Modules:
nimcatapi
,
nimcatapi/client
,
nimcatapi/internal
,
nimcatapi/typedefs
.
API symbols
AnimalApi:
typedefs: AnimalApi
AnimalApiKind:
typedefs: AnimalApiKind
Breed:
typedefs: Breed
buildRequest:
internal: buildRequest(api, request): string
errorLog:
internal: errorLog(msg: string)
formatGif:
ImageFormat.formatGif
formatJpg:
ImageFormat.formatJpg
formatPng:
ImageFormat.formatPng
getImagesFromResponse:
internal: getImagesFromResponse(response: JsonNode): seq[string]
internal: getImagesFromResponse(response: seq[Re]): seq[string]
getImagesFromResponseRawJsonNode:
internal: getImagesFromResponseRawJsonNode(response: JsonNode): seq[string]
ImageFormat:
typedefs: ImageFormat
ImageSize:
typedefs: ImageSize
newCatApiClient:
client: newCatApiClient(token: string = ""): AnimalApi
newDogApiClient:
client: newDogApiClient(token: string = ""): AnimalApi
Request:
typedefs: Request
requestImageUrl:
client: requestImageUrl(api): string
requestImageUrls:
client: requestImageUrls(api, request): seq[string]
client: requestImageUrls(api; size: ImageSize = sizeNone; format: ImageFormat; amount: Positive = 1): seq[string]
client: requestImageUrls(api; size: ImageSize = sizeNone; formats: seq[ImageFormat]; amount: Positive = 1): seq[string]
client: requestImageUrls(api; amount: Positive): seq[string]
Response:
typedefs: Response
sendRequest:
internal: sendRequest(api, request): JsonNode
sizeFull:
ImageSize.sizeFull
sizeMed:
ImageSize.sizeMed
sizeNone:
ImageSize.sizeNone
sizeSmall:
ImageSize.sizeSmall
TheCatApi:
AnimalApiKind.TheCatApi
TheDogApi:
AnimalApiKind.TheDogApi