Easylink
Iontráil DO URL bunaidh
Roghanna breise
Saincheap do nasc
Ready
DO URL gearr
Leathanach staitisticí
Go raibh maith agat as easylink a úsáid!Gin nasc eile

Uirlis shimplí chun naisc ghearra a chruthú

Chun a ghiniúint ní gá ach do nasc fada a chur isteach sa réimse thuas, ansin brúigh "IONTRÁIL" nó an cnaipe ar dheis. Sa cheantar thíos tá nasc réamhdhéanta agus cód QR dó. Mar a fheiceann tú, tá sé an-simplí.

Telegram (bot): @easylink_bot

API

Easylink API tá sé an-simplí a úsáid. Just a iarraidh ar https://el1nk.com/api le paraiméadair "url" agus "password". Bí cúramach, ní féidir leat fearann A athrú LE API.
Is é an freagra tá 7 luach i teaghrán JSON:
  1. error: "false" má TÁ gach RUD CEART GO LEOR.
  2. original: DO URL bunaidh.
  3. short: URL giorraithe.
  4. qr: Seoladh cód QR.
  5. password: iontráil focal faire.
  6. statistics: nasc le staitisticí.
  7. private: "true" má socraíodh pasfhocal.
Sampla de chur i bhfeidhm I 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);
Freagra:
{"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}
Má tá earráid ann feicfidh tú rud éigin mar seo:
{"error":{"cause":"empty string"}}