Easylink
입력하신의 원래 URL
추가 옵션
사용자 링크
Ready
귀하의 짧은 URL
통계 페이지
를 사용하여 주셔서 감사합니 easyLink!를 생성하는 다른 링크

간단한 도구를 만들기 위한 짧은 링크

그냥 위의 필드에 긴 링크를 삽입 생성하려면,다음"입력"또는 오른쪽에있는 버튼을 누릅니다. 아래 영역에는 이미 만들어진 링크와 큐어 코드가 나타납니다. 당신이 볼 수 있듯이,그것은 매우 간단합니다.

Telegram (로봇): @easylink_bot

API

Easylink API 사용하기 매우 간단합니다. 그냥 요청을 https://el1nk.com/api 매개 변수 포함 "url" 고 "password". 주의로 변경할 수 없습니다 도메인 API.
대답은 JSON 문자열 값을 포함 7:
  1. error: "false" 모든 것이 괜찮다면.
  2. original: 귀하의 원래.
  3. short: 누전 URL.
  4. qr: QR 코드 주소.
  5. password: 비밀번호 입력.
  6. statistics: 에 대한 링크를 통계.
  7. private: "true" 암호가 설정된 경우.
예를 들의 구현 PHP:
<?php

/* Using file_get_contents(): */

file_get_contents( 'https://el1nk.com/api?url=example.com' );

/* Using cURL: */

$query = http_build_query( [
    'url' => "example.com",
    'password' => '1234',
] );

$curl = curl_init();

$url = "https://el1nk.com/api";
curl_setopt( $curl, CURLOPT_URL, $url );
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $curl, CURLOPT_POST, 1 );
curl_setopt( $curl, CURLOPT_POSTFIELDS, $query );

$result = curl_exec($curl);
curl_close($curl);
응답:
{"error":false,"original":"example.com","short":"https:\/\/el1nk.com\/B","qr":"https:\/\/el1nk.com\/qr\/show\/55268.png","password":"","statistics":"https:\/\/el1nk.com\/stat\/58","private":false}
오류가 있는 경우 다음과 같이 표시됩니다:
{"error":{"cause":"empty string"}}