ClickLogin - API

Public API for ClickLogin platform

Add site

POST https://api.clicklogin.ru/api/addtoken

Add your site to platform

Path Parameters

NameTypeDescription

domain

string

Ex: https://google.com

{
    "error": false,
    "message": "Domain successfully added. Please remember this token, you will never seen this again.",
    "data": {
        "token": "a24892d96a05f0536ac76a7facf95ebfe5a96df3745f8b1f80a466ca971225fbadff0c0268b2b058e8be300a0424f5a9e74677e0c2757e2e361438129d",
        "domain": "lolz.com"
    }
}

Stats

GET https://api.clicklogin.ru/api/stats

Stats

{
    "domains": 45,
    "auths": 43929,
    "vk": 8,
    "fb": 0,
    "ok": 0,
    "gp": 0
}

Auth user (Ex: vk)

GET https://api.clicklogin.ru/api/auth/[AUTH_TYPE]?domain=[DOMAIN]&redirect=[REDIRECT_URL]&token=[CLICK_LOGIN_TOKEN]

Supported [AUTH_TYPE] (One of them): vk, fb, ok, gp [DOMAIN] ex: clicklogin.ru [REDIRECT_URL] ex: https://clicklogin.ru/ * You can take token from first request in this document. * After this link user will be redirected to Social Network, and bring back to your Redirect URL with ?token_auth param, then you need to check it via CheckUser request below.

Check user Auth

GET https://api.clicklogin.ru/api/usereq?token=[TOKEN_AUTH]

You can use file_get_contents() on this link with TOKEN_AUTH from previous request.

Path Parameters

NameTypeDescription

token

string

TOKEN_AUTH from previous request

{
    "error": false,
    "message": "User data successfully requested",
    "data": {
        "user": {
            ...
            user_id
            email
            first_name
            last_name
        }
    }
}

Last updated