生成するには、上のフィールドに長いリンクを挿入してから、「ENTER」または右側のボタンを押します。 下の領域には、既製のリンクとそのためのQRコードが表示されます。 ご覧のとおり、とても簡単です。
注意したいリンクを有効にする必要がある。 場合に挿入するフル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"}}