8000 GitHub - Abduvokhid/redline
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Abduvokhid/redline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RLN (RedLine) API

More coming soon...

The RLN API is an HTTP-based interface designed to facilitate work with RLN service.

We support GET and POST HTTP methods. We support three ways of passing parameters in RLN API requests:

  • URL query string
  • application/x-www-form-urlencoded
  • application/json

API request limits:
15 any requests per second. Flood wait time after 15 requests/second is 300 seconds.

createLink

Use this method to shorten one or more links.

Headers:

Key Value
Content-Type application/json

Parameters:

Parameter Type Description
token string Token generated during registration
links array Array of links for shortening

Example:

Request:

curl --location --request GET "https://api.rln.uz/createLink?token=TOKEN&links=LINKS" \
  --header "Content-Type: application/json"

Response:

{
  "ok": true,
  "result": {
    "links": [
      {
        "id": "pHV9",
        "long": "https://www.toptal.com/laravel/restful-laravel-api-tutorial",
        "short": "https://rln.uz/pHV9"
      }
    ]
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0