cURL
curl --request GET \
--url https://api.waytoapi.com/apidoc/collect/ai/gemini/result \
--header 'aiKey: <aikey>'import requests
url = "https://api.waytoapi.com/apidoc/collect/ai/gemini/result"
headers = {"aiKey": "<aikey>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {aiKey: '<aikey>'}};
fetch('https://api.waytoapi.com/apidoc/collect/ai/gemini/result', 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://api.waytoapi.com/apidoc/collect/ai/gemini/result",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"aiKey: <aikey>"
],
]);
$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://api.waytoapi.com/apidoc/collect/ai/gemini/result"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("aiKey", "<aikey>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.waytoapi.com/apidoc/collect/ai/gemini/result")
.header("aiKey", "<aikey>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.waytoapi.com/apidoc/collect/ai/gemini/result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["aiKey"] = '<aikey>'
response = http.request(request)
puts response.read_body{
"code": 123,
"info": "<string>",
"result": {
"taskId": "<string>",
"status": 123,
"message": "<string>",
"videoUrl": "<string>",
"addTime": "<string>",
"endTime": "<string>"
},
"success": true,
"failure": true
}Endpoint examples
Gemini Result
get task result by taskCode
GET
/
gemini
/
result
cURL
curl --request GET \
--url https://api.waytoapi.com/apidoc/collect/ai/gemini/result \
--header 'aiKey: <aikey>'import requests
url = "https://api.waytoapi.com/apidoc/collect/ai/gemini/result"
headers = {"aiKey": "<aikey>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {aiKey: '<aikey>'}};
fetch('https://api.waytoapi.com/apidoc/collect/ai/gemini/result', 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://api.waytoapi.com/apidoc/collect/ai/gemini/result",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"aiKey: <aikey>"
],
]);
$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://api.waytoapi.com/apidoc/collect/ai/gemini/result"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("aiKey", "<aikey>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.waytoapi.com/apidoc/collect/ai/gemini/result")
.header("aiKey", "<aikey>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.waytoapi.com/apidoc/collect/ai/gemini/result")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["aiKey"] = '<aikey>'
response = http.request(request)
puts response.read_body{
"code": 123,
"info": "<string>",
"result": {
"taskId": "<string>",
"status": 123,
"message": "<string>",
"videoUrl": "<string>",
"addTime": "<string>",
"endTime": "<string>"
},
"success": true,
"failure": true
}⌘I