Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Latest commit

 

History

History
88 lines (75 loc) · 2.29 KB

hug.md

File metadata and controls

88 lines (75 loc) · 2.29 KB
description
Get a random hug image!

Hug

{% api-method method="get" host="https://api.furry.bot/sfw" path="/hug/:responseType/:imageType" %} {% api-method-summary %} Get hugs. {% endapi-method-summary %}

{% api-method-description %} This endpoint allows you to get random fur hugging images. {% endapi-method-description %}

{% api-method-spec %} {% api-method-request %} {% api-method-path-parameters %} {% api-method-parameter name="imageType" type="string" required=false %} This can be one or more of: png,jpg,gif,webp separated by commas (no spaces) {% endapi-method-parameter %}

{% api-method-parameter name="responseType" type="string" required=false %} This can be json or image, if not specified json will be used. {% endapi-method-parameter %} {% endapi-method-path-parameters %}

{% api-method-query-parameters %} {% api-method-parameter name="cdn" type="string" required=false %} Which cdn should be used for this request? The possible values for this are hidden internally. {% endapi-method-parameter %} {% endapi-method-query-parameters %} {% endapi-method-request %}

{% api-method-response %} {% api-method-response-example httpCode=200 %} {% api-method-response-example-description %} An image was found {% endapi-method-response-example-description %}

{
    "success": true,
    "response": {
        "image": "https://fb.furcdn.net/sfw/hug/10114-25774-19393.jpg",
        "filetype": "jpeg",
        "name": "10114-25774-19393.jpg",
        "returntype": "json"
    }
}

{% endapi-method-response-example %}

{% api-method-response-example httpCode=400 %} {% api-method-response-example-description %} Something was wrong with the request. {% endapi-method-response-example-description %}

{
    "success": false,
    "error": {
        "code": 400
        "description": "{varies}"
    }]
}

{% endapi-method-response-example %}

{% api-method-response-example httpCode=404 %} {% api-method-response-example-description %} An image was not found. {% endapi-method-response-example-description %}

{
    "success": false,
    "error": {
        "code": 404,
        "description": "no images found with given type."
    }
}

{% endapi-method-response-example %} {% endapi-method-response %} {% endapi-method-spec %} {% endapi-method %}