shortlink.create
Creates a new short link for an URL on ok.me service
Name | Required | Type | Description |
---|---|---|---|
url | true | | URL to bo shortened |
hide_statistics | false | | Hide statistics from others so it is available only for owner |
allow_dupes | false | | Allow creation of a duplicate if such URL already exists for this owner, otherwise exiting URL is returned |
Authorization
Session is requiredType
{ "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