Skip to content

Requests

aiookru executes http requests with httpx.AsyncClient.

Request Format

httpx.AsyncClient makes GET requests according to Request Format. For example:

GET https://api.ok.ru/fb.do?method=friends.get

Response Format

{
    "response": ...
}

or

{
    "error": {
        "error_code": 1,
        "error_msg": "Unknown error occurred",
        "request_params": { ... }
    }
}