PasteCloud

PasteCloud

User info

If you like to retreive your personal data you make a GET request to the /api/me endpoint.

API call preview

CURLCopy to clipboard
$ curl https://ohdearapp.com/api/me
    -H 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjU2NDdiNjhsdfqqsdfsdqfsgggf'
    -H 'Accept: application/json'
    -H 'Content-Type: application/json'

Response preview

JSONCopy to clipboard
{
    "url": "https://pastecloud.net/profile/1-john",
    "avatar_url": "http://pastecloud.test/uploads/ASG2zIt6PSrCPvkCEoI6IdFyjNvI0XhnftZkk1Fx.png",
    "username": "John",
    "email": "john.doe@gmail.com",
    "preferences": {
        "status": 1,
        "sidebar": 1,
        "expiry_id": 1,
        "syntax_id": 1,
        "newsletter": 1,
        "public_profile": 1
    },
    "created_at": {
        "date": "2000-01-01 12:00:00.000000",
        "timezone_type": 3,
        "timezone": "UTC"
    },
    "last_login_at": {
        "date": "2000-01-01 12:00:00.000000",
        "timezone_type": 3,
        "timezone": "UTC"
    }
}