그냥 위의 필드에 긴 링크를 삽입 생성하려면,다음"입력"또는 오른쪽에있는 버튼을 누릅니다. 아래 영역에는 이미 만들어진 링크와 큐어 코드가 나타납니다. 당신이 볼 수 있듯이,그것은 매우 간단합니다.
주의 링크할 수 있어야 합니다. 삽입할 경우 전체 URL 을 체계(프로토콜 일반적으로)에 있는지 확인하는 일 중 하나에서 이 목록: 원. 또는,거부를 삽입하려면 전체에 링크가 있습니다. 예를 들어의 유효한 URL: example.com. 또 다른 예: http://example.com/nel/mezzo/del/cammin?di=nostra#vita.
Telegram (로봇): @easylink_bot<?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"}}