短视频去水印API文档

接口:http://api.xunkz.com/api.php?action=1001&token=&url=
参数说明:
token=令牌
url=解析链接

PHP代码示例

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'http://api.xunkz.com/api.php?action=1001&token=&url=',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;

Java代码示例

OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
Request request = new Request.Builder()
  .url("http://api.xunkz.com/api.php?action=1001&token=&url=")
  .method("GET", null)
  .build();
Response response = client.newCall(request).execute();

简单方便,这个接口支持的还挺多的,特此记录下

你可能感兴趣的:(前端,php,开发语言)