Get an opening hook reference
curl --request GET \
--url https://customer.lululab.ai/creation-references/hook/{id}import requests
url = "https://customer.lululab.ai/creation-references/hook/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://customer.lululab.ai/creation-references/hook/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://customer.lululab.ai/creation-references/hook/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://customer.lululab.ai/creation-references/hook/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://customer.lululab.ai/creation-references/hook/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://customer.lululab.ai/creation-references/hook/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"videoId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startMs": 123,
"endMs": 123,
"primaryType": "<string>",
"tagCodes": [
"<string>"
],
"applicableCategoryIds": [
"<string>"
],
"categoryId": "<string>",
"title": "<string>",
"titleZh": "<string>",
"summary": "<string>",
"summaryZh": "<string>",
"rationale": "<string>",
"rationaleZh": "<string>",
"creativeJson": "<string>",
"reversePrompt": "<string>",
"reversePromptZh": "<string>",
"clipUrl": "<string>",
"sourceUrl": "<string>",
"sourceVideoUrl": "<string>",
"revision": 123,
"analysisVersion": "<string>",
"clipAssetId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}模型与参考素材
Get an opening hook reference
Fetch an approved, ready opening hook from an eligible public video.
GET
/
creation-references
/
hook
/
{id}
Get an opening hook reference
curl --request GET \
--url https://customer.lululab.ai/creation-references/hook/{id}import requests
url = "https://customer.lululab.ai/creation-references/hook/{id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://customer.lululab.ai/creation-references/hook/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://customer.lululab.ai/creation-references/hook/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://customer.lululab.ai/creation-references/hook/{id}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://customer.lululab.ai/creation-references/hook/{id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://customer.lululab.ai/creation-references/hook/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"videoId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startMs": 123,
"endMs": 123,
"primaryType": "<string>",
"tagCodes": [
"<string>"
],
"applicableCategoryIds": [
"<string>"
],
"categoryId": "<string>",
"title": "<string>",
"titleZh": "<string>",
"summary": "<string>",
"summaryZh": "<string>",
"rationale": "<string>",
"rationaleZh": "<string>",
"creativeJson": "<string>",
"reversePrompt": "<string>",
"reversePromptZh": "<string>",
"clipUrl": "<string>",
"sourceUrl": "<string>",
"sourceVideoUrl": "<string>",
"revision": 123,
"analysisVersion": "<string>",
"clipAssetId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z"
}响应
OK