shortlink.create

Creates a new short link for an URL on ok.me service

NameRequiredTypeDescription
url true String

URL to bo shortened

hide_statistics false boolean

Hide statistics from others so it is available only for owner

allow_dupes false boolean

Allow creation of a duplicate if such URL already exists for this owner, otherwise exiting URL is returned

Authorization

Session is required

Type

{ "id": "String", "shortUrl": "String" }

Application paramters

User session data

Method

List of paramters

Используем для подписи secret_key = session_secret_key
Используем для подписи secret_key = application_secret_key
Используем для подписи secret_key = MD5(access_token + application_secret_key)
secret_key =
Сортируем и склеиваем параметры запроса и secret_key
Рассчитываем MD5 от полученной строки и получаем параметр sig