PRO subscription Plan

(Endpoints & SDKs)

Endpoint: /pro/data

Code Snippets






CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT"); curl_easy_setopt(hnd, CURLOPT_URL, "https://titan-ai.p.rapidapi.com/pro/data"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "content-type: application/json"); headers = curl_slist_append(headers, "x-rapidapi-host: titan-ai.p.rapidapi.com"); headers = curl_slist_append(headers, "x-rapidapi-key: Enter your X-RapidAPI-Key here"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(hnd, CURLOPT_PUTFIELDS, "{ \"id\": \"Enter your X-RapidAPI-Key here\", \"content\": \"Enter your text here\" }"); CURLcode5 ret = curl_easy_perform(hnd);


(require '[clj-http.client :as client]) (client/PUT "https://titan-ai.p.rapidapi.com/pro/data" {:headers {:x-rapidapi-host "titan-ai.p.rapidapi.com" :x-rapidapi-key "Enter your X-RapidAPI-Key here"} :content-type :json :form-params {:id "Enter your X-RapidAPI-Key here" :content "Enter your text here"}}


var client = new RestClient("https://titan-ai.p.rapidapi.com/pro/data"); var request = new RestRequest(Method.PUT); request.AddHeader("content-type", "application/json"); request.AddHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com"); request.AddHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); request.AddParameter("application/json", "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request);


var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.PUT, RequestUri = new Uri("https://titan-ai.p.rapidapi.com/pro/data"), Headers = { { "x-rapidapi-host", "titan-ai.p.rapidapi.com" }, { "x-rapidapi-key", "Enter your X-RapidAPI-Key here" }, }, Content = new StringContent("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatuscode5(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }


var client = new RestClient("https://titan-ai.p.rapidapi.com/pro/data"); var request = new RestRequest(Method.PUT); request.AddHeader("content-type", "application/json"); request.AddHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com"); request.AddHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); request.AddParameter("application/json", "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request);


package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://titan-ai.p.rapidapi.com/pro/data" payload := strings.NewReader("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}") req, _ := http.NewRequest("PUT", url, payload) req.Header.Add("content-type", "application/json") req.Header.Add("x-rapidapi-host", "titan-ai.p.rapidapi.com") req.Header.Add("x-rapidapi-key", "Enter your X-RapidAPI-Key here") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }


PUT /pro/data HTTP/1.1 Content-Type: application/json X-Rapidapi-Host: titan-ai.p.rapidapi.com X-Rapidapi-Key: Enter your X-RapidAPI-Key here Host: titan-ai.p.rapidapi.com Content-Length: 94 { "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" }


OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}"); Request request = new Request.Builder() .url("https://titan-ai.p.rapidapi.com/pro/data") .PUT(body) .addHeader("content-type", "application/json") .addHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com") .addHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .build(); Response response = client.newCall(request).execute();


HttpResponse response = Unirest.PUT("https://titan-ai.p.rapidapi.com/pro/data") .header("content-type", "application/json") .header("x-rapidapi-host", "titan-ai.p.rapidapi.com") .header("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .body("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}") .asString();


AsyncHttpClient client = new DefaultAsyncHttpClient(); client.prepare("PUT", "https://titan-ai.p.rapidapi.com/pro/data") .setHeader("content-type", "application/json") .setHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com") .setHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .setBody("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}") .execute() .toCompletableFuture() .thenAccept(System.out::println) .join(); client.close();


HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://titan-ai.p.rapidapi.com/pro/data")) .header("content-type", "application/json") .header("x-rapidapi-host", "titan-ai.p.rapidapi.com") .header("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}")) .build(); HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body());


const settings = { "async": true, "crossDomain": true, "url": "https://titan-ai.p.rapidapi.com/pro/data", "method": "PUT", "headers": { "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here" }, "processData": false, "data": { "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" } }; $.ajax(settings).done(function (response) { console.log(response); });


fetch("https://titan-ai.p.rapidapi.com/pro/data", { "method": "PUT", "headers": { "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here" }, "body": { "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" } }) .then(response => { console.log(response); }) .catch(err => { console.error(err); });


const data = JSON.stringify({ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" }); const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); } }); xhr.open("PUT", "https://titan-ai.p.rapidapi.com/pro/data"); xhr.setRequestHeader("content-type", "application/json"); xhr.setRequestHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com"); xhr.setRequestHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); xhr.send(data);


import axios from "axios"; const options = { method: 'PUT', url: 'https://titan-ai.p.rapidapi.com/pro/data', headers: { 'content-type': 'application/json', 'x-rapidapi-host': 'titan-ai.p.rapidapi.com', 'x-rapidapi-key': 'Enter your X-RapidAPI-Key here' }, data: {id: 'Enter your X-RapidAPI-Key here', content: 'Enter your text here'} }; axios.request(options).then(function (response) { console.log(response.data); }).catch(function (error) { console.error(error); });


val client = OkHttpClient() val mediaType = MediaType.parse("application/json") val body = RequestBody.create(mediaType, "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}") val request = Request.Builder() .url("https://titan-ai.p.rapidapi.com/pro/data") .PUT(body) .addHeader("content-type", "application/json") .addHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com") .addHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .build() val response = client.newCall(request).execute()


const http = require("https"); const options = { "method": "PUT", "hostname": "titan-ai.p.rapidapi.com", "port": null, "path": "/pro/data", "headers": { "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here", "useQueryString": true } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.write(JSON.stringify({id: 'Enter your X-RapidAPI-Key here', content: 'Enter your text here'})); req.end();


const request = require('request'); const options = { method: 'PUT', url: 'https://titan-ai.p.rapidapi.com/pro/data', headers: { 'content-type': 'application/json', 'x-rapidapi-host': 'titan-ai.p.rapidapi.com', 'x-rapidapi-key': 'Enter your X-RapidAPI-Key here', useQueryString: true }, body: {id: 'Enter your X-RapidAPI-Key here', content: 'Enter your text here'}, json: true }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });


var unirest = require("unirest"); var req = unirest("PUT", "https://titan-ai.p.rapidapi.com/pro/data"); req.headers({ "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here", "useQueryString": true }); req.type("json"); req.send({ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" }); req.end(function (res) { if (res.error) throw new Error(res.error); console.log(res.body); });


var axios = require("axios").default; var options = { method: 'PUT', url: 'https://titan-ai.p.rapidapi.com/pro/data', headers: { 'content-type': 'application/json', 'x-rapidapi-host': 'titan-ai.p.rapidapi.com', 'x-rapidapi-key': 'Enter your X-RapidAPI-Key here' }, data: {id: 'Enter your X-RapidAPI-Key here', content: 'Enter your text here'} }; axios.request(options).then(function (response) { console.log(response.data); }).catch(function (error) { console.error(error); });


#import NSDictionary *headers = @{ @"content-type": @"application/json", @"x-rapidapi-host": @"titan-ai.p.rapidapi.com", @"x-rapidapi-key": @"Enter your X-RapidAPI-Key here" }; NSDictionary *parameters = @{ @"id": @"Enter your X-RapidAPI-Key here", @"content": @"Enter your text here" }; NSData *PUTData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://titan-ai.p.rapidapi.com/pro/data"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10.0]; [request setHTTPMethod:@"PUT"]; [request setAllHTTPHeaderFields:headers]; [request setHTTPBody:PUTData]; NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (error) { NSLog(@"%@", error); } else { NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response; NSLog(@"%@", httpResponse); } }]; [dataTask resume];


#import NSDictionary *headers = @{ @"content-type": @"application/json", @"x-rapidapi-host": @"titan-ai.p.rapidapi.com", @"x-rapidapi-key": @"Enter your X-RapidAPI-Key here" }; NSDictionary *parameters = @{ @"id": @"Enter your X-RapidAPI-Key here", @"content": @"Enter your text here" }; NSData *PUTData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://titan-ai.p.rapidapi.com/pro/data"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10.0]; [request setHTTPMethod:@"PUT"]; [request setAllHTTPHeaderFields:headers]; [request setHTTPBody:PUTData]; NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (error) { NSLog(@"%@", error); } else { NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response; NSLog(@"%@", httpResponse); } }]; [dataTask resume];


open Cohttp_lwt_unix open Cohttp open Lwt let uri = Uri.of_string "https://titan-ai.p.rapidapi.com/pro/data" in let headers = Header.add_list (Header.init ()) [ ("content-type", "application/json"); ("x-rapidapi-host", "titan-ai.p.rapidapi.com"); ("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); ] in let body = Cohttp_lwt_body.of_string "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}" in Client.call ~headers ~body `PUT uri >>= fun (res, body_stream) -> (* Do stuff with the result *)


"https://titan-ai.p.rapidapi.com/pro/data", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "PUT", CURLOPT_PUTFIELDS => "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}", CURLOPT_HTTPHEADER => [ "content-type: application/json", "x-rapidapi-host: titan-ai.p.rapidapi.com", "x-rapidapi-key: Enter your X-RapidAPI-Key here" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }


setUrl('https://titan-ai.p.rapidapi.com/pro/data'); $request->setMethod(HTTP_METH_PUT); $request->setHeaders([ 'content-type' => 'application/json', 'x-rapidapi-host' => 'titan-ai.p.rapidapi.com', 'x-rapidapi-key' => 'Enter your X-RapidAPI-Key here' ]); $request->setBody('{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" }'); try { $response = $request->send(); echo $response->getBody(); } catch (HttpException $ex) { echo $ex; }


append('{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" }'); $request->setRequestUrl('https://titan-ai.p.rapidapi.com/pro/data'); $request->setRequestMethod('PUT'); $request->setBody($body); $request->setHeaders([ 'content-type' => 'application/json', 'x-rapidapi-host' => 'titan-ai.p.rapidapi.com', 'x-rapidapi-key' => 'Enter your X-RapidAPI-Key here' ]); $client->enqueue($request)->send(); $response = $client->getResponse(); echo $response->getBody();


"https://titan-ai.p.rapidapi.com/pro/data", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "PUT", CURLOPT_PUTFIELDS => "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}", CURLOPT_HTTPHEADER => [ "content-type: application/json", "x-rapidapi-host: titan-ai.p.rapidapi.com", "x-rapidapi-key: Enter your X-RapidAPI-Key here" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }


[email protected]{} $headers.Add("content-type", "application/json") $headers.Add("x-rapidapi-host", "titan-ai.p.rapidapi.com") $headers.Add("x-rapidapi-key", "Enter your X-RapidAPI-Key here") $response = Invoke-WebRequest -Uri 'https://titan-ai.p.rapidapi.com/pro/data' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" }'


[email protected]{} $headers.Add("content-type", "application/json") $headers.Add("x-rapidapi-host", "titan-ai.p.rapidapi.com") $headers.Add("x-rapidapi-key", "Enter your X-RapidAPI-Key here") $response = Invoke-RestMethod -Uri 'https://titan-ai.p.rapidapi.com/pro/data' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" }'


import http.client conn = http.client.HTTPSConnection("titan-ai.p.rapidapi.com") payload = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}" headers = { 'content-type': "application/json", 'x-rapidapi-host': "titan-ai.p.rapidapi.com", 'x-rapidapi-key': "Enter your X-RapidAPI-Key here" } conn.request("PUT", "/pro/data", payload, headers) res = conn.getresponse() data = res.read() print(data.decode5("utf-8"))


import requests url = "https://titan-ai.p.rapidapi.com/pro/data" payload = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}" headers = { 'content-type': "application/json", 'x-rapidapi-host': "titan-ai.p.rapidapi.com", 'x-rapidapi-key': "Enter your X-RapidAPI-Key here" } response = requests.request("PUT", url, data=payload, headers=headers) print(response.text)


import http.client conn = http.client.HTTPSConnection("titan-ai.p.rapidapi.com") payload = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}" headers = { 'content-type': "application/json", 'x-rapidapi-host': "titan-ai.p.rapidapi.com", 'x-rapidapi-key': "Enter your X-RapidAPI-Key here" } conn.request("PUT", "/pro/data", payload, headers) res = conn.getresponse() data = res.read() print(data.decode5("utf-8"))


library(httr) url <- "https://titan-ai.p.rapidapi.com/pro/data" payload <- "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}" encode5 <- "json" response <- VERB("PUT", url, body = payload, add_headers(x_rapidapi-host = 'titan-ai.p.rapidapi.com', x_rapidapi-key = 'Enter your X-RapidAPI-Key here', '), content_type("application/json"), encode5 = encode5) content(response, "text")


// For more information about RapidQL, checkout docs.rapidql.com! const RapidQL = require('RapidQL'); let rql = new RapidQL({ }); rql.query(`{ Http.PUT( url:"https://titan-ai.p.rapidapi.com/pro/data" headers : { "content-type":"application/json", "x-rapidapi-host":"titan-ai.p.rapidapi.com", "x-rapidapi-key":"Enter your X-RapidAPI-Key here" } json: true, body: { "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" } ) { } }`) .then((res) => console.log(res)) .catch((err) => console.log(err));


require 'uri' require 'net/http' require 'openssl' url = URI("https://titan-ai.p.rapidapi.com/pro/data") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::PUT.new(url) request["content-type"] = 'application/json' request["x-rapidapi-host"] = 'titan-ai.p.rapidapi.com' request["x-rapidapi-key"] = 'Enter your X-RapidAPI-Key here' request.body = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}" response = http.request(request) puts response.read_body


require 'uri' require 'net/http' require 'openssl' url = URI("https://titan-ai.p.rapidapi.com/pro/data") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::PUT.new(url) request["content-type"] = 'application/json' request["x-rapidapi-host"] = 'titan-ai.p.rapidapi.com' request["x-rapidapi-key"] = 'Enter your X-RapidAPI-Key here' request.body = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}" response = http.request(request) puts response.read_body


curl --request PUT \ --url https://titan-ai.p.rapidapi.com/pro/data \ --header 'content-type: application/json' \ --header 'x-rapidapi-host: titan-ai.p.rapidapi.com' \ --header 'x-rapidapi-key: Enter your X-RapidAPI-Key here' \ --data '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" }'


echo '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" }' | \ http PUT https://titan-ai.p.rapidapi.com/pro/data \ content-type:application/json \ x-rapidapi-host:titan-ai.p.rapidapi.com \ x-rapidapi-key:Enter your X-RapidAPI-Key here


wget --quiet \ --method PUT \ --header 'content-type: application/json' \ --header 'x-rapidapi-host: titan-ai.p.rapidapi.com' \ --header 'x-rapidapi-key: Enter your X-RapidAPI-Key here' \ --body-data '{\n "id": "Enter your X-RapidAPI-Key here",\n "content": "Enter your text here"\n}' \ --output-document \ - https://titan-ai.p.rapidapi.com/pro/data


import Foundation let headers = [ "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here" ] let parameters = [ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" ] as [String : Any] let PUTData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://titan-ai.p.rapidapi.com/pro/data")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "PUT" request.allHTTPHeaderFields = headers request.httpBody = PUTData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume()

Endpoint: /pro/rule

Code Snippets






CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT"); curl_easy_setopt(hnd, CURLOPT_URL, "https://titan-ai.p.rapidapi.com/pro/rule"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "content-type: application/json"); headers = curl_slist_append(headers, "x-rapidapi-host: titan-ai.p.rapidapi.com"); headers = curl_slist_append(headers, "x-rapidapi-key: Enter your X-RapidAPI-Key here"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(hnd, CURLOPT_PUTFIELDS, "{ \"id\": \"Enter your X-RapidAPI-Key here\", \"content\": \"Enter your rules here\" }"); CURLcode6 ret = curl_easy_perform(hnd);


(require '[clj-http.client :as client]) (client/PUT "https://titan-ai.p.rapidapi.com/pro/rule" {:headers {:x-rapidapi-host "titan-ai.p.rapidapi.com" :x-rapidapi-key "Enter your X-RapidAPI-Key here"} :content-type :json :form-params {:id "Enter your X-RapidAPI-Key here" :content "Enter your rules here"}}


var client = new RestClient("https://titan-ai.p.rapidapi.com/pro/rule"); var request = new RestRequest(Method.PUT); request.AddHeader("content-type", "application/json"); request.AddHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com"); request.AddHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); request.AddParameter("application/json", "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request);


var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.PUT, RequestUri = new Uri("https://titan-ai.p.rapidapi.com/pro/rule"), Headers = { { "x-rapidapi-host", "titan-ai.p.rapidapi.com" }, { "x-rapidapi-key", "Enter your X-RapidAPI-Key here" }, }, Content = new StringContent("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatuscode6(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }


var client = new RestClient("https://titan-ai.p.rapidapi.com/pro/rule"); var request = new RestRequest(Method.PUT); request.AddHeader("content-type", "application/json"); request.AddHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com"); request.AddHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); request.AddParameter("application/json", "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request);


package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://titan-ai.p.rapidapi.com/pro/rule" payload := strings.NewReader("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}") req, _ := http.NewRequest("PUT", url, payload) req.Header.Add("content-type", "application/json") req.Header.Add("x-rapidapi-host", "titan-ai.p.rapidapi.com") req.Header.Add("x-rapidapi-key", "Enter your X-RapidAPI-Key here") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }


PUT /pro/rule HTTP/1.1 Content-Type: application/json X-Rapidapi-Host: titan-ai.p.rapidapi.com X-Rapidapi-Key: Enter your X-RapidAPI-Key here Host: titan-ai.p.rapidapi.com Content-Length: 94 { "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" }


OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}"); Request request = new Request.Builder() .url("https://titan-ai.p.rapidapi.com/pro/rule") .PUT(body) .addHeader("content-type", "application/json") .addHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com") .addHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .build(); Response response = client.newCall(request).execute();


HttpResponse response = Unirest.PUT("https://titan-ai.p.rapidapi.com/pro/rule") .header("content-type", "application/json") .header("x-rapidapi-host", "titan-ai.p.rapidapi.com") .header("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .body("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}") .asString();


AsyncHttpClient client = new DefaultAsyncHttpClient(); client.prepare("PUT", "https://titan-ai.p.rapidapi.com/pro/rule") .setHeader("content-type", "application/json") .setHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com") .setHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .setBody("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}") .execute() .toCompletableFuture() .thenAccept(System.out::println) .join(); client.close();


HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://titan-ai.p.rapidapi.com/pro/rule")) .header("content-type", "application/json") .header("x-rapidapi-host", "titan-ai.p.rapidapi.com") .header("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}")) .build(); HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body());


const settings = { "async": true, "crossDomain": true, "url": "https://titan-ai.p.rapidapi.com/pro/rule", "method": "PUT", "headers": { "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here" }, "processData": false, "data": { "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" } }; $.ajax(settings).done(function (response) { console.log(response); });


fetch("https://titan-ai.p.rapidapi.com/pro/rule", { "method": "PUT", "headers": { "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here" }, "body": { "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" } }) .then(response => { console.log(response); }) .catch(err => { console.error(err); });


const data = JSON.stringify({ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" }); const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); } }); xhr.open("PUT", "https://titan-ai.p.rapidapi.com/pro/rule"); xhr.setRequestHeader("content-type", "application/json"); xhr.setRequestHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com"); xhr.setRequestHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); xhr.send(data);


import axios from "axios"; const options = { method: 'PUT', url: 'https://titan-ai.p.rapidapi.com/pro/rule', headers: { 'content-type': 'application/json', 'x-rapidapi-host': 'titan-ai.p.rapidapi.com', 'x-rapidapi-key': 'Enter your X-RapidAPI-Key here' }, data: {id: 'Enter your X-RapidAPI-Key here', content: 'Enter your rules here'} }; axios.request(options).then(function (response) { console.log(response.data); }).catch(function (error) { console.error(error); });


val client = OkHttpClient() val mediaType = MediaType.parse("application/json") val body = RequestBody.create(mediaType, "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}") val request = Request.Builder() .url("https://titan-ai.p.rapidapi.com/pro/rule") .PUT(body) .addHeader("content-type", "application/json") .addHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com") .addHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .build() val response = client.newCall(request).execute()


const http = require("https"); const options = { "method": "PUT", "hostname": "titan-ai.p.rapidapi.com", "port": null, "path": "/pro/rule", "headers": { "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here", "useQueryString": true } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.write(JSON.stringify({id: 'Enter your X-RapidAPI-Key here', content: 'Enter your rules here'})); req.end();


const request = require('request'); const options = { method: 'PUT', url: 'https://titan-ai.p.rapidapi.com/pro/rule', headers: { 'content-type': 'application/json', 'x-rapidapi-host': 'titan-ai.p.rapidapi.com', 'x-rapidapi-key': 'Enter your X-RapidAPI-Key here', useQueryString: true }, body: {id: 'Enter your X-RapidAPI-Key here', content: 'Enter your rules here'}, json: true }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });


var unirest = require("unirest"); var req = unirest("PUT", "https://titan-ai.p.rapidapi.com/pro/rule"); req.headers({ "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here", "useQueryString": true }); req.type("json"); req.send({ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" }); req.end(function (res) { if (res.error) throw new Error(res.error); console.log(res.body); });


var axios = require("axios").default; var options = { method: 'PUT', url: 'https://titan-ai.p.rapidapi.com/pro/rule', headers: { 'content-type': 'application/json', 'x-rapidapi-host': 'titan-ai.p.rapidapi.com', 'x-rapidapi-key': 'Enter your X-RapidAPI-Key here' }, data: {id: 'Enter your X-RapidAPI-Key here', content: 'Enter your rules here'} }; axios.request(options).then(function (response) { console.log(response.data); }).catch(function (error) { console.error(error); });


#import NSDictionary *headers = @{ @"content-type": @"application/json", @"x-rapidapi-host": @"titan-ai.p.rapidapi.com", @"x-rapidapi-key": @"Enter your X-RapidAPI-Key here" }; NSDictionary *parameters = @{ @"id": @"Enter your X-RapidAPI-Key here", @"content": @"Enter your rules here" }; NSData *PUTData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://titan-ai.p.rapidapi.com/pro/rule"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10.0]; [request setHTTPMethod:@"PUT"]; [request setAllHTTPHeaderFields:headers]; [request setHTTPBody:PUTData]; NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (error) { NSLog(@"%@", error); } else { NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response; NSLog(@"%@", httpResponse); } }]; [dataTask resume];


#import NSDictionary *headers = @{ @"content-type": @"application/json", @"x-rapidapi-host": @"titan-ai.p.rapidapi.com", @"x-rapidapi-key": @"Enter your X-RapidAPI-Key here" }; NSDictionary *parameters = @{ @"id": @"Enter your X-RapidAPI-Key here", @"content": @"Enter your rules here" }; NSData *PUTData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://titan-ai.p.rapidapi.com/pro/rule"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10.0]; [request setHTTPMethod:@"PUT"]; [request setAllHTTPHeaderFields:headers]; [request setHTTPBody:PUTData]; NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (error) { NSLog(@"%@", error); } else { NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response; NSLog(@"%@", httpResponse); } }]; [dataTask resume];


open Cohttp_lwt_unix open Cohttp open Lwt let uri = Uri.of_string "https://titan-ai.p.rapidapi.com/pro/rule" in let headers = Header.add_list (Header.init ()) [ ("content-type", "application/json"); ("x-rapidapi-host", "titan-ai.p.rapidapi.com"); ("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); ] in let body = Cohttp_lwt_body.of_string "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}" in Client.call ~headers ~body `PUT uri >>= fun (res, body_stream) -> (* Do stuff with the result *)


"https://titan-ai.p.rapidapi.com/pro/rule", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "PUT", CURLOPT_PUTFIELDS => "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}", CURLOPT_HTTPHEADER => [ "content-type: application/json", "x-rapidapi-host: titan-ai.p.rapidapi.com", "x-rapidapi-key: Enter your X-RapidAPI-Key here" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }


setUrl('https://titan-ai.p.rapidapi.com/pro/rule'); $request->setMethod(HTTP_METH_PUT); $request->setHeaders([ 'content-type' => 'application/json', 'x-rapidapi-host' => 'titan-ai.p.rapidapi.com', 'x-rapidapi-key' => 'Enter your X-RapidAPI-Key here' ]); $request->setBody('{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" }'); try { $response = $request->send(); echo $response->getBody(); } catch (HttpException $ex) { echo $ex; }


append('{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" }'); $request->setRequestUrl('https://titan-ai.p.rapidapi.com/pro/rule'); $request->setRequestMethod('PUT'); $request->setBody($body); $request->setHeaders([ 'content-type' => 'application/json', 'x-rapidapi-host' => 'titan-ai.p.rapidapi.com', 'x-rapidapi-key' => 'Enter your X-RapidAPI-Key here' ]); $client->enqueue($request)->send(); $response = $client->getResponse(); echo $response->getBody();


"https://titan-ai.p.rapidapi.com/pro/rule", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "PUT", CURLOPT_PUTFIELDS => "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}", CURLOPT_HTTPHEADER => [ "content-type: application/json", "x-rapidapi-host: titan-ai.p.rapidapi.com", "x-rapidapi-key: Enter your X-RapidAPI-Key here" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }


[email protected]{} $headers.Add("content-type", "application/json") $headers.Add("x-rapidapi-host", "titan-ai.p.rapidapi.com") $headers.Add("x-rapidapi-key", "Enter your X-RapidAPI-Key here") $response = Invoke-WebRequest -Uri 'https://titan-ai.p.rapidapi.com/pro/rule' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" }'


[email protected]{} $headers.Add("content-type", "application/json") $headers.Add("x-rapidapi-host", "titan-ai.p.rapidapi.com") $headers.Add("x-rapidapi-key", "Enter your X-RapidAPI-Key here") $response = Invoke-RestMethod -Uri 'https://titan-ai.p.rapidapi.com/pro/rule' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" }'


import http.client conn = http.client.HTTPSConnection("titan-ai.p.rapidapi.com") payload = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}" headers = { 'content-type': "application/json", 'x-rapidapi-host': "titan-ai.p.rapidapi.com", 'x-rapidapi-key': "Enter your X-RapidAPI-Key here" } conn.request("PUT", "/pro/rule", payload, headers) res = conn.getresponse() data = res.read() print(data.decode6("utf-8"))


import requests url = "https://titan-ai.p.rapidapi.com/pro/rule" payload = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}" headers = { 'content-type': "application/json", 'x-rapidapi-host': "titan-ai.p.rapidapi.com", 'x-rapidapi-key': "Enter your X-RapidAPI-Key here" } response = requests.request("PUT", url, data=payload, headers=headers) print(response.text)


import http.client conn = http.client.HTTPSConnection("titan-ai.p.rapidapi.com") payload = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}" headers = { 'content-type': "application/json", 'x-rapidapi-host': "titan-ai.p.rapidapi.com", 'x-rapidapi-key': "Enter your X-RapidAPI-Key here" } conn.request("PUT", "/pro/rule", payload, headers) res = conn.getresponse() data = res.read() print(data.decode6("utf-8"))


library(httr) url <- "https://titan-ai.p.rapidapi.com/pro/rule" payload <- "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}" encode6 <- "json" response <- VERB("PUT", url, body = payload, add_headers(x_rapidapi-host = 'titan-ai.p.rapidapi.com', x_rapidapi-key = 'Enter your X-RapidAPI-Key here', '), content_type("application/json"), encode6 = encode6) content(response, "text")


// For more information about RapidQL, checkout docs.rapidql.com! const RapidQL = require('RapidQL'); let rql = new RapidQL({ }); rql.query(`{ Http.PUT( url:"https://titan-ai.p.rapidapi.com/pro/rule" headers : { "content-type":"application/json", "x-rapidapi-host":"titan-ai.p.rapidapi.com", "x-rapidapi-key":"Enter your X-RapidAPI-Key here" } json: true, body: { "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" } ) { } }`) .then((res) => console.log(res)) .catch((err) => console.log(err));


require 'uri' require 'net/http' require 'openssl' url = URI("https://titan-ai.p.rapidapi.com/pro/rule") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::PUT.new(url) request["content-type"] = 'application/json' request["x-rapidapi-host"] = 'titan-ai.p.rapidapi.com' request["x-rapidapi-key"] = 'Enter your X-RapidAPI-Key here' request.body = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}" response = http.request(request) puts response.read_body


require 'uri' require 'net/http' require 'openssl' url = URI("https://titan-ai.p.rapidapi.com/pro/rule") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::PUT.new(url) request["content-type"] = 'application/json' request["x-rapidapi-host"] = 'titan-ai.p.rapidapi.com' request["x-rapidapi-key"] = 'Enter your X-RapidAPI-Key here' request.body = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}" response = http.request(request) puts response.read_body


curl --request PUT \ --url https://titan-ai.p.rapidapi.com/pro/rule \ --header 'content-type: application/json' \ --header 'x-rapidapi-host: titan-ai.p.rapidapi.com' \ --header 'x-rapidapi-key: Enter your X-RapidAPI-Key here' \ --data '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" }'


echo '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" }' | \ http PUT https://titan-ai.p.rapidapi.com/pro/rule \ content-type:application/json \ x-rapidapi-host:titan-ai.p.rapidapi.com \ x-rapidapi-key:Enter your X-RapidAPI-Key here


wget --quiet \ --method PUT \ --header 'content-type: application/json' \ --header 'x-rapidapi-host: titan-ai.p.rapidapi.com' \ --header 'x-rapidapi-key: Enter your X-RapidAPI-Key here' \ --body-data '{\n "id": "Enter your X-RapidAPI-Key here",\n "content": "Enter your rules here"\n}' \ --output-document \ - https://titan-ai.p.rapidapi.com/pro/rule


import Foundation let headers = [ "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here" ] let parameters = [ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" ] as [String : Any] let PUTData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://titan-ai.p.rapidapi.com/pro/rule")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "PUT" request.allHTTPHeaderFields = headers request.httpBody = PUTData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume()

Endpoint: /pro/query

Code Snippets






CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(hnd, CURLOPT_URL, "https://titan-ai.p.rapidapi.com/pro/query"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "content-type: application/json"); headers = curl_slist_append(headers, "x-rapidapi-host: titan-ai.p.rapidapi.com"); headers = curl_slist_append(headers, "x-rapidapi-key: Enter your X-RapidAPI-Key here"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{ \"id\": \"Enter your X-RapidAPI-Key here\", \"content\": \"Enter a question here\" }"); CURLcode7 ret = curl_easy_perform(hnd);


(require '[clj-http.client :as client]) (client/POST "https://titan-ai.p.rapidapi.com/pro/query" {:headers {:x-rapidapi-host "titan-ai.p.rapidapi.com" :x-rapidapi-key "Enter your X-RapidAPI-Key here"} :content-type :json :form-params {:id "Enter your X-RapidAPI-Key here" :content "Enter a question here"}}


var client = new RestClient("https://titan-ai.p.rapidapi.com/pro/query"); var request = new RestRequest(Method.POST); request.AddHeader("content-type", "application/json"); request.AddHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com"); request.AddHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); request.AddParameter("application/json", "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request);


var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.POST, RequestUri = new Uri("https://titan-ai.p.rapidapi.com/pro/query"), Headers = { { "x-rapidapi-host", "titan-ai.p.rapidapi.com" }, { "x-rapidapi-key", "Enter your X-RapidAPI-Key here" }, }, Content = new StringContent("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatuscode7(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }


var client = new RestClient("https://titan-ai.p.rapidapi.com/pro/query"); var request = new RestRequest(Method.POST); request.AddHeader("content-type", "application/json"); request.AddHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com"); request.AddHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); request.AddParameter("application/json", "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}", ParameterType.RequestBody); IRestResponse response = client.Execute(request);


package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://titan-ai.p.rapidapi.com/pro/query" payload := strings.NewReader("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("content-type", "application/json") req.Header.Add("x-rapidapi-host", "titan-ai.p.rapidapi.com") req.Header.Add("x-rapidapi-key", "Enter your X-RapidAPI-Key here") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }


POST /pro/query HTTP/1.1 Content-Type: application/json X-Rapidapi-Host: titan-ai.p.rapidapi.com X-Rapidapi-Key: Enter your X-RapidAPI-Key here Host: titan-ai.p.rapidapi.com Content-Length: 94 { "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" }


OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}"); Request request = new Request.Builder() .url("https://titan-ai.p.rapidapi.com/pro/query") .POST(body) .addHeader("content-type", "application/json") .addHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com") .addHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .build(); Response response = client.newCall(request).execute();


HttpResponse response = Unirest.POST("https://titan-ai.p.rapidapi.com/pro/query") .header("content-type", "application/json") .header("x-rapidapi-host", "titan-ai.p.rapidapi.com") .header("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .body("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}") .asString();


AsyncHttpClient client = new DefaultAsyncHttpClient(); client.prepare("POST", "https://titan-ai.p.rapidapi.com/pro/query") .setHeader("content-type", "application/json") .setHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com") .setHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .setBody("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}") .execute() .toCompletableFuture() .thenAccept(System.out::println) .join(); client.close();


HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://titan-ai.p.rapidapi.com/pro/query")) .header("content-type", "application/json") .header("x-rapidapi-host", "titan-ai.p.rapidapi.com") .header("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .method("POST", HttpRequest.BodyPublishers.ofString("{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}")) .build(); HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body());


const settings = { "async": true, "crossDomain": true, "url": "https://titan-ai.p.rapidapi.com/pro/query", "method": "POST", "headers": { "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here" }, "processData": false, "data": { "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" } }; $.ajax(settings).done(function (response) { console.log(response); });


fetch("https://titan-ai.p.rapidapi.com/pro/query", { "method": "POST", "headers": { "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here" }, "body": { "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" } }) .then(response => { console.log(response); }) .catch(err => { console.error(err); });


const data = JSON.stringify({ "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" }); const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); } }); xhr.open("POST", "https://titan-ai.p.rapidapi.com/pro/query"); xhr.setRequestHeader("content-type", "application/json"); xhr.setRequestHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com"); xhr.setRequestHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); xhr.send(data);


import axios from "axios"; const options = { method: 'POST', url: 'https://titan-ai.p.rapidapi.com/pro/query', headers: { 'content-type': 'application/json', 'x-rapidapi-host': 'titan-ai.p.rapidapi.com', 'x-rapidapi-key': 'Enter your X-RapidAPI-Key here' }, data: {id: 'Enter your X-RapidAPI-Key here', content: 'Enter a question here'} }; axios.request(options).then(function (response) { console.log(response.data); }).catch(function (error) { console.error(error); });


val client = OkHttpClient() val mediaType = MediaType.parse("application/json") val body = RequestBody.create(mediaType, "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}") val request = Request.Builder() .url("https://titan-ai.p.rapidapi.com/pro/query") .POST(body) .addHeader("content-type", "application/json") .addHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com") .addHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .build() val response = client.newCall(request).execute()


const http = require("https"); const options = { "method": "POST", "hostname": "titan-ai.p.rapidapi.com", "port": null, "path": "/pro/query", "headers": { "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here", "useQueryString": true } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.write(JSON.stringify({id: 'Enter your X-RapidAPI-Key here', content: 'Enter a question here'})); req.end();


const request = require('request'); const options = { method: 'POST', url: 'https://titan-ai.p.rapidapi.com/pro/query', headers: { 'content-type': 'application/json', 'x-rapidapi-host': 'titan-ai.p.rapidapi.com', 'x-rapidapi-key': 'Enter your X-RapidAPI-Key here', useQueryString: true }, body: {id: 'Enter your X-RapidAPI-Key here', content: 'Enter a question here'}, json: true }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });


var unirest = require("unirest"); var req = unirest("POST", "https://titan-ai.p.rapidapi.com/pro/query"); req.headers({ "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here", "useQueryString": true }); req.type("json"); req.send({ "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" }); req.end(function (res) { if (res.error) throw new Error(res.error); console.log(res.body); });


var axios = require("axios").default; var options = { method: 'POST', url: 'https://titan-ai.p.rapidapi.com/pro/query', headers: { 'content-type': 'application/json', 'x-rapidapi-host': 'titan-ai.p.rapidapi.com', 'x-rapidapi-key': 'Enter your X-RapidAPI-Key here' }, data: {id: 'Enter your X-RapidAPI-Key here', content: 'Enter a question here'} }; axios.request(options).then(function (response) { console.log(response.data); }).catch(function (error) { console.error(error); });


#import NSDictionary *headers = @{ @"content-type": @"application/json", @"x-rapidapi-host": @"titan-ai.p.rapidapi.com", @"x-rapidapi-key": @"Enter your X-RapidAPI-Key here" }; NSDictionary *parameters = @{ @"id": @"Enter your X-RapidAPI-Key here", @"content": @"Enter a question here" }; NSData *POSTData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://titan-ai.p.rapidapi.com/pro/query"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10.0]; [request setHTTPMethod:@"POST"]; [request setAllHTTPHeaderFields:headers]; [request setHTTPBody:POSTData]; NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (error) { NSLog(@"%@", error); } else { NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response; NSLog(@"%@", httpResponse); } }]; [dataTask resume];


#import NSDictionary *headers = @{ @"content-type": @"application/json", @"x-rapidapi-host": @"titan-ai.p.rapidapi.com", @"x-rapidapi-key": @"Enter your X-RapidAPI-Key here" }; NSDictionary *parameters = @{ @"id": @"Enter your X-RapidAPI-Key here", @"content": @"Enter a question here" }; NSData *POSTData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://titan-ai.p.rapidapi.com/pro/query"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10.0]; [request setHTTPMethod:@"POST"]; [request setAllHTTPHeaderFields:headers]; [request setHTTPBody:POSTData]; NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (error) { NSLog(@"%@", error); } else { NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response; NSLog(@"%@", httpResponse); } }]; [dataTask resume];


open Cohttp_lwt_unix open Cohttp open Lwt let uri = Uri.of_string "https://titan-ai.p.rapidapi.com/pro/query" in let headers = Header.add_list (Header.init ()) [ ("content-type", "application/json"); ("x-rapidapi-host", "titan-ai.p.rapidapi.com"); ("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); ] in let body = Cohttp_lwt_body.of_string "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}" in Client.call ~headers ~body `POST uri >>= fun (res, body_stream) -> (* Do stuff with the result *)


"https://titan-ai.p.rapidapi.com/pro/query", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}", CURLOPT_HTTPHEADER => [ "content-type: application/json", "x-rapidapi-host: titan-ai.p.rapidapi.com", "x-rapidapi-key: Enter your X-RapidAPI-Key here" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }


setUrl('https://titan-ai.p.rapidapi.com/pro/query'); $request->setMethod(HTTP_METH_POST); $request->setHeaders([ 'content-type' => 'application/json', 'x-rapidapi-host' => 'titan-ai.p.rapidapi.com', 'x-rapidapi-key' => 'Enter your X-RapidAPI-Key here' ]); $request->setBody('{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" }'); try { $response = $request->send(); echo $response->getBody(); } catch (HttpException $ex) { echo $ex; }


append('{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" }'); $request->setRequestUrl('https://titan-ai.p.rapidapi.com/pro/query'); $request->setRequestMethod('POST'); $request->setBody($body); $request->setHeaders([ 'content-type' => 'application/json', 'x-rapidapi-host' => 'titan-ai.p.rapidapi.com', 'x-rapidapi-key' => 'Enter your X-RapidAPI-Key here' ]); $client->enqueue($request)->send(); $response = $client->getResponse(); echo $response->getBody();


"https://titan-ai.p.rapidapi.com/pro/query", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}", CURLOPT_HTTPHEADER => [ "content-type: application/json", "x-rapidapi-host: titan-ai.p.rapidapi.com", "x-rapidapi-key: Enter your X-RapidAPI-Key here" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }


[email protected]{} $headers.Add("content-type", "application/json") $headers.Add("x-rapidapi-host", "titan-ai.p.rapidapi.com") $headers.Add("x-rapidapi-key", "Enter your X-RapidAPI-Key here") $response = Invoke-WebRequest -Uri 'https://titan-ai.p.rapidapi.com/pro/query' -Method POST -Headers $headers -ContentType 'application/json' -Body '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" }'


[email protected]{} $headers.Add("content-type", "application/json") $headers.Add("x-rapidapi-host", "titan-ai.p.rapidapi.com") $headers.Add("x-rapidapi-key", "Enter your X-RapidAPI-Key here") $response = Invoke-RestMethod -Uri 'https://titan-ai.p.rapidapi.com/pro/query' -Method POST -Headers $headers -ContentType 'application/json' -Body '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" }'


import http.client conn = http.client.HTTPSConnection("titan-ai.p.rapidapi.com") payload = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}" headers = { 'content-type': "application/json", 'x-rapidapi-host': "titan-ai.p.rapidapi.com", 'x-rapidapi-key': "Enter your X-RapidAPI-Key here" } conn.request("POST", "/pro/query", payload, headers) res = conn.getresponse() data = res.read() print(data.decode7("utf-8"))


import requests url = "https://titan-ai.p.rapidapi.com/pro/query" payload = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}" headers = { 'content-type': "application/json", 'x-rapidapi-host': "titan-ai.p.rapidapi.com", 'x-rapidapi-key': "Enter your X-RapidAPI-Key here" } response = requests.request("POST", url, data=payload, headers=headers) print(response.text)


import http.client conn = http.client.HTTPSConnection("titan-ai.p.rapidapi.com") payload = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}" headers = { 'content-type': "application/json", 'x-rapidapi-host': "titan-ai.p.rapidapi.com", 'x-rapidapi-key': "Enter your X-RapidAPI-Key here" } conn.request("POST", "/pro/query", payload, headers) res = conn.getresponse() data = res.read() print(data.decode7("utf-8"))


library(httr) url <- "https://titan-ai.p.rapidapi.com/pro/query" payload <- "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}" encode7 <- "json" response <- VERB("POST", url, body = payload, add_headers(x_rapidapi-host = 'titan-ai.p.rapidapi.com', x_rapidapi-key = 'Enter your X-RapidAPI-Key here', '), content_type("application/json"), encode7 = encode7) content(response, "text")


// For more information about RapidQL, checkout docs.rapidql.com! const RapidQL = require('RapidQL'); let rql = new RapidQL({ }); rql.query(`{ Http.POST( url:"https://titan-ai.p.rapidapi.com/pro/query" headers : { "content-type":"application/json", "x-rapidapi-host":"titan-ai.p.rapidapi.com", "x-rapidapi-key":"Enter your X-RapidAPI-Key here" } json: true, body: { "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" } ) { } }`) .then((res) => console.log(res)) .catch((err) => console.log(err));


require 'uri' require 'net/http' require 'openssl' url = URI("https://titan-ai.p.rapidapi.com/pro/query") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::POST.new(url) request["content-type"] = 'application/json' request["x-rapidapi-host"] = 'titan-ai.p.rapidapi.com' request["x-rapidapi-key"] = 'Enter your X-RapidAPI-Key here' request.body = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}" response = http.request(request) POSTs response.read_body


require 'uri' require 'net/http' require 'openssl' url = URI("https://titan-ai.p.rapidapi.com/pro/query") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::POST.new(url) request["content-type"] = 'application/json' request["x-rapidapi-host"] = 'titan-ai.p.rapidapi.com' request["x-rapidapi-key"] = 'Enter your X-RapidAPI-Key here' request.body = "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}" response = http.request(request) POSTs response.read_body


curl --request POST \ --url https://titan-ai.p.rapidapi.com/pro/query \ --header 'content-type: application/json' \ --header 'x-rapidapi-host: titan-ai.p.rapidapi.com' \ --header 'x-rapidapi-key: Enter your X-RapidAPI-Key here' \ --data '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" }'


echo '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" }' | \ http POST https://titan-ai.p.rapidapi.com/pro/query \ content-type:application/json \ x-rapidapi-host:titan-ai.p.rapidapi.com \ x-rapidapi-key:Enter your X-RapidAPI-Key here


wget --quiet \ --method POST \ --header 'content-type: application/json' \ --header 'x-rapidapi-host: titan-ai.p.rapidapi.com' \ --header 'x-rapidapi-key: Enter your X-RapidAPI-Key here' \ --body-data '{\n "id": "Enter your X-RapidAPI-Key here",\n "content": "Enter a question here"\n}' \ --outPOST-document \ - https://titan-ai.p.rapidapi.com/pro/query


import Foundation let headers = [ "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here" ] let parameters = [ "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" ] as [String : Any] let POSTData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://titan-ai.p.rapidapi.com/pro/query")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = POSTData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume()

Endpoint: /pro/response

Code Snippets






CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(hnd, CURLOPT_URL, "https://titan-ai.p.rapidapi.com/pro/response"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "content-type: application/json"); headers = curl_slist_append(headers, "x-rapidapi-host: titan-ai.p.rapidapi.com"); headers = curl_slist_append(headers, "x-rapidapi-key: Enter your X-RapidAPI-Key here"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "[\n \"Enter your X-RapidAPI-Key here\"\n]"); CURLcode ret = curl_easy_perform(hnd);


(require '[clj-http.client :as client]) (client/post "https://titan-ai.p.rapidapi.com/pro/response" {:headers {:x-rapidapi-host "titan-ai.p.rapidapi.com" :x-rapidapi-key "Enter your X-RapidAPI-Key here"} :content-type :json :form-params ["Enter your X-RapidAPI-Key here"]})


var client = new RestClient("https://titan-ai.p.rapidapi.com/pro/response"); var request = new RestRequest(Method.POST); request.AddHeader("content-type", "application/json"); request.AddHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com"); request.AddHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); request.AddParameter("application/json", "[\n \"Enter your X-RapidAPI-Key here\"\n]", ParameterType.RequestBody); IRestResponse response = client.Execute(request);


var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Post, RequestUri = new Uri("https://titan-ai.p.rapidapi.com/pro/response"), Headers = { { "x-rapidapi-host", "titan-ai.p.rapidapi.com" }, { "x-rapidapi-key", "Enter your X-RapidAPI-Key here" }, }, Content = new StringContent("[\n \"Enter your X-RapidAPI-Key here\"\n]") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } } }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }


var client = new RestClient("https://titan-ai.p.rapidapi.com/pro/response"); var request = new RestRequest(Method.POST); request.AddHeader("content-type", "application/json"); request.AddHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com"); request.AddHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); request.AddParameter("application/json", "[\n \"Enter your X-RapidAPI-Key here\"\n]", ParameterType.RequestBody); IRestResponse response = client.Execute(request);


package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://titan-ai.p.rapidapi.com/pro/response" payload := strings.NewReader("[\n \"Enter your X-RapidAPI-Key here\"\n]") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("content-type", "application/json") req.Header.Add("x-rapidapi-host", "titan-ai.p.rapidapi.com") req.Header.Add("x-rapidapi-key", "Enter your X-RapidAPI-Key here") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := ioutil.ReadAll(res.Body) fmt.Println(res) fmt.Println(string(body)) }


POST /pro/response HTTP/1.1 Content-Type: application/json X-Rapidapi-Host: titan-ai.p.rapidapi.com X-Rapidapi-Key: Enter your X-RapidAPI-Key here Host: titan-ai.p.rapidapi.com Content-Length: 40 [ "Enter your X-RapidAPI-Key here" ]


OkHttpClient client = new OkHttpClient(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "[\n \"Enter your X-RapidAPI-Key here\"\n]"); Request request = new Request.Builder() .url("https://titan-ai.p.rapidapi.com/pro/response") .post(body) .addHeader("content-type", "application/json") .addHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com") .addHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .build(); Response response = client.newCall(request).execute();


HttpResponse response = Unirest.post("https://titan-ai.p.rapidapi.com/pro/response") .header("content-type", "application/json") .header("x-rapidapi-host", "titan-ai.p.rapidapi.com") .header("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .body("[\n \"Enter your X-RapidAPI-Key here\"\n]") .asString();


AsyncHttpClient client = new DefaultAsyncHttpClient(); client.prepare("POST", "https://titan-ai.p.rapidapi.com/pro/response") .setHeader("content-type", "application/json") .setHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com") .setHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .setBody("[\n \"Enter your X-RapidAPI-Key here\"\n]") .execute() .toCompletableFuture() .thenAccept(System.out::println) .join(); client.close();


HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://titan-ai.p.rapidapi.com/pro/response")) .header("content-type", "application/json") .header("x-rapidapi-host", "titan-ai.p.rapidapi.com") .header("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .method("POST", HttpRequest.BodyPublishers.ofString("[\n \"Enter your X-RapidAPI-Key here\"\n]")) .build(); HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body());


const settings = { "async": true, "crossDomain": true, "url": "https://titan-ai.p.rapidapi.com/pro/response", "method": "POST", "headers": { "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here" }, "processData": false, "data": [ "Enter your X-RapidAPI-Key here" ] }; $.ajax(settings).done(function (response) { console.log(response); });


fetch("https://titan-ai.p.rapidapi.com/pro/response", { "method": "POST", "headers": { "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here" }, "body": [ "Enter your X-RapidAPI-Key here" ] }) .then(response => { console.log(response); }) .catch(err => { console.error(err); });


const data = JSON.stringify([ "Enter your X-RapidAPI-Key here" ]); const xhr = new XMLHttpRequest(); xhr.withCredentials = true; xhr.addEventListener("readystatechange", function () { if (this.readyState === this.DONE) { console.log(this.responseText); } }); xhr.open("POST", "https://titan-ai.p.rapidapi.com/pro/response"); xhr.setRequestHeader("content-type", "application/json"); xhr.setRequestHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com"); xhr.setRequestHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); xhr.send(data);


import axios from "axios"; const options = { method: 'POST', url: 'https://titan-ai.p.rapidapi.com/pro/response', headers: { 'content-type': 'application/json', 'x-rapidapi-host': 'titan-ai.p.rapidapi.com', 'x-rapidapi-key': 'Enter your X-RapidAPI-Key here' }, data: ['Enter your X-RapidAPI-Key here'] }; axios.request(options).then(function (response) { console.log(response.data); }).catch(function (error) { console.error(error); });


val client = OkHttpClient() val mediaType = MediaType.parse("application/json") val body = RequestBody.create(mediaType, "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text/question here\"\n}") val request = Request.Builder() .url("https://titan-ai.p.rapidapi.com/mega_upload") .post(body) .addHeader("content-type", "application/json") .addHeader("x-rapidapi-host", "titan-ai.p.rapidapi.com") .addHeader("x-rapidapi-key", "Enter your X-RapidAPI-Key here") .build() val response = client.newCall(request).execute()


const http = require("https"); const options = { "method": "POST", "hostname": "titan-ai.p.rapidapi.com", "port": null, "path": "/pro/response", "headers": { "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here", "useQueryString": true } }; const req = http.request(options, function (res) { const chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function () { const body = Buffer.concat(chunks); console.log(body.toString()); }); }); req.write(JSON.stringify(['Enter your X-RapidAPI-Key here'])); req.end();


const request = require('request'); const options = { method: 'POST', url: 'https://titan-ai.p.rapidapi.com/pro/response', headers: { 'content-type': 'application/json', 'x-rapidapi-host': 'titan-ai.p.rapidapi.com', 'x-rapidapi-key': 'Enter your X-RapidAPI-Key here', useQueryString: true }, body: ['Enter your X-RapidAPI-Key here'], json: true }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });


var unirest = require("unirest"); var req = unirest("POST", "https://titan-ai.p.rapidapi.com/pro/response"); req.headers({ "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here", "useQueryString": true }); req.type("json"); req.send([ "Enter your X-RapidAPI-Key here" ]); req.end(function (res) { if (res.error) throw new Error(res.error); console.log(res.body); });


var axios = require("axios").default; var options = { method: 'POST', url: 'https://titan-ai.p.rapidapi.com/pro/response', headers: { 'content-type': 'application/json', 'x-rapidapi-host': 'titan-ai.p.rapidapi.com', 'x-rapidapi-key': 'Enter your X-RapidAPI-Key here' }, data: ['Enter your X-RapidAPI-Key here'] }; axios.request(options).then(function (response) { console.log(response.data); }).catch(function (error) { console.error(error); });


#import NSDictionary *headers = @{ @"content-type": @"application/json", @"x-rapidapi-host": @"titan-ai.p.rapidapi.com", @"x-rapidapi-key": @"Enter your X-RapidAPI-Key here" }; NSDictionary *parameters = @[ @"Enter your X-RapidAPI-Key here" ]; NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://titan-ai.p.rapidapi.com/pro/response"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10.0]; [request setHTTPMethod:@"POST"]; [request setAllHTTPHeaderFields:headers]; [request setHTTPBody:postData]; NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (error) { NSLog(@"%@", error); } else { NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response; NSLog(@"%@", httpResponse); } }]; [dataTask resume];


#import NSDictionary *headers = @{ @"content-type": @"application/json", @"x-rapidapi-host": @"titan-ai.p.rapidapi.com", @"x-rapidapi-key": @"Enter your X-RapidAPI-Key here" }; NSDictionary *parameters = @[ @"Enter your X-RapidAPI-Key here" ]; NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://titan-ai.p.rapidapi.com/pro/response"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:10.0]; [request setHTTPMethod:@"POST"]; [request setAllHTTPHeaderFields:headers]; [request setHTTPBody:postData]; NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) { if (error) { NSLog(@"%@", error); } else { NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response; NSLog(@"%@", httpResponse); } }]; [dataTask resume];


open Cohttp_lwt_unix open Cohttp open Lwt let uri = Uri.of_string "https://titan-ai.p.rapidapi.com/pro/response" in let headers = Header.add_list (Header.init ()) [ ("content-type", "application/json"); ("x-rapidapi-host", "titan-ai.p.rapidapi.com"); ("x-rapidapi-key", "Enter your X-RapidAPI-Key here"); ] in let body = Cohttp_lwt_body.of_string "[\n \"Enter your X-RapidAPI-Key here\"\n]" in Client.call ~headers ~body `POST uri >>= fun (res, body_stream) -> (* Do stuff with the result *)


"https://titan-ai.p.rapidapi.com/pro/response", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "[\n \"Enter your X-RapidAPI-Key here\"\n]", CURLOPT_HTTPHEADER => [ "content-type: application/json", "x-rapidapi-host: titan-ai.p.rapidapi.com", "x-rapidapi-key: Enter your X-RapidAPI-Key here" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }


setUrl('https://titan-ai.p.rapidapi.com/pro/response'); $request->setMethod(HTTP_METH_POST); $request->setHeaders([ 'content-type' => 'application/json', 'x-rapidapi-host' => 'titan-ai.p.rapidapi.com', 'x-rapidapi-key' => 'Enter your X-RapidAPI-Key here' ]); $request->setBody('[ "Enter your X-RapidAPI-Key here" ]'); try { $response = $request->send(); echo $response->getBody(); } catch (HttpException $ex) { echo $ex; }


append('[ "Enter your X-RapidAPI-Key here" ]'); $request->setRequestUrl('https://titan-ai.p.rapidapi.com/pro/response'); $request->setRequestMethod('POST'); $request->setBody($body); $request->setHeaders([ 'content-type' => 'application/json', 'x-rapidapi-host' => 'titan-ai.p.rapidapi.com', 'x-rapidapi-key' => 'Enter your X-RapidAPI-Key here' ]); $client->enqueue($request)->send(); $response = $client->getResponse(); echo $response->getBody();


"https://titan-ai.p.rapidapi.com/pro/response", CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "[\n \"Enter your X-RapidAPI-Key here\"\n]", CURLOPT_HTTPHEADER => [ "content-type: application/json", "x-rapidapi-host: titan-ai.p.rapidapi.com", "x-rapidapi-key: Enter your X-RapidAPI-Key here" ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; }


[email protected]{} $headers.Add("content-type", "application/json") $headers.Add("x-rapidapi-host", "titan-ai.p.rapidapi.com") $headers.Add("x-rapidapi-key", "Enter your X-RapidAPI-Key here") $response = Invoke-WebRequest -Uri 'https://titan-ai.p.rapidapi.com/pro/response' -Method POST -Headers $headers -ContentType 'application/json' -Body '[ "Enter your X-RapidAPI-Key here" ]'


[email protected]{} $headers.Add("content-type", "application/json") $headers.Add("x-rapidapi-host", "titan-ai.p.rapidapi.com") $headers.Add("x-rapidapi-key", "Enter your X-RapidAPI-Key here") $response = Invoke-RestMethod -Uri 'https://titan-ai.p.rapidapi.com/pro/response' -Method POST -Headers $headers -ContentType 'application/json' -Body '[ "Enter your X-RapidAPI-Key here" ]'


import http.client conn = http.client.HTTPSConnection("titan-ai.p.rapidapi.com") payload = "[\n \"Enter your X-RapidAPI-Key here\"\n]" headers = { 'content-type': "application/json", 'x-rapidapi-host': "titan-ai.p.rapidapi.com", 'x-rapidapi-key': "Enter your X-RapidAPI-Key here" } conn.request("POST", "/pro/response", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))


import requests url = "https://titan-ai.p.rapidapi.com/pro/response" payload = "[\n \"Enter your X-RapidAPI-Key here\"\n]" headers = { 'content-type': "application/json", 'x-rapidapi-host': "titan-ai.p.rapidapi.com", 'x-rapidapi-key': "Enter your X-RapidAPI-Key here" } response = requests.request("POST", url, data=payload, headers=headers) print(response.text)


import http.client conn = http.client.HTTPSConnection("titan-ai.p.rapidapi.com") payload = "[\n \"Enter your X-RapidAPI-Key here\"\n]" headers = { 'content-type': "application/json", 'x-rapidapi-host': "titan-ai.p.rapidapi.com", 'x-rapidapi-key': "Enter your X-RapidAPI-Key here" } conn.request("POST", "/pro/response", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))


library(httr) url <- "https://titan-ai.p.rapidapi.com/pro/response" payload <- "[\n \"Enter your X-RapidAPI-Key here\"\n]" encode <- "json" response <- VERB("POST", url, body = payload, add_headers(x_rapidapi-host = 'titan-ai.p.rapidapi.com', x_rapidapi-key = 'Enter your X-RapidAPI-Key here', '), content_type("application/json"), encode = encode) content(response, "text")


// For more information about RapidQL, checkout docs.rapidql.com! const RapidQL = require('RapidQL'); let rql = new RapidQL({ }); rql.query(`{ Http.post( url:"https://titan-ai.p.rapidapi.com/pro/response" headers : { "content-type":"application/json", "x-rapidapi-host":"titan-ai.p.rapidapi.com", "x-rapidapi-key":"Enter your X-RapidAPI-Key here" } json: true, body: [ "Enter your X-RapidAPI-Key here" ] ) { } }`) .then((res) => console.log(res)) .catch((err) => console.log(err));


require 'uri' require 'net/http' require 'openssl' url = URI("https://titan-ai.p.rapidapi.com/pro/response") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Post.new(url) request["content-type"] = 'application/json' request["x-rapidapi-host"] = 'titan-ai.p.rapidapi.com' request["x-rapidapi-key"] = 'Enter your X-RapidAPI-Key here' request.body = "[\n \"Enter your X-RapidAPI-Key here\"\n]" response = http.request(request) puts response.read_body


require 'uri' require 'net/http' require 'openssl' url = URI("https://titan-ai.p.rapidapi.com/pro/response") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request = Net::HTTP::Post.new(url) request["content-type"] = 'application/json' request["x-rapidapi-host"] = 'titan-ai.p.rapidapi.com' request["x-rapidapi-key"] = 'Enter your X-RapidAPI-Key here' request.body = "[\n \"Enter your X-RapidAPI-Key here\"\n]" response = http.request(request) puts response.read_body


curl --request POST \ --url https://titan-ai.p.rapidapi.com/pro/response \ --header 'content-type: application/json' \ --header 'x-rapidapi-host: titan-ai.p.rapidapi.com' \ --header 'x-rapidapi-key: Enter your X-RapidAPI-Key here' \ --data '[ "Enter your X-RapidAPI-Key here" ]'


echo '[ "Enter your X-RapidAPI-Key here" ]' | \ http POST https://titan-ai.p.rapidapi.com/pro/response \ content-type:application/json \ x-rapidapi-host:titan-ai.p.rapidapi.com \ x-rapidapi-key:Enter your X-RapidAPI-Key here


wget --quiet \ --method POST \ --header 'content-type: application/json' \ --header 'x-rapidapi-host: titan-ai.p.rapidapi.com' \ --header 'x-rapidapi-key: Enter your X-RapidAPI-Key here' \ --body-data '[\n "Enter your X-RapidAPI-Key here"\n]' \ --output-document \ - https://titan-ai.p.rapidapi.com/pro/response


import Foundation let headers = [ "content-type": "application/json", "x-rapidapi-host": "titan-ai.p.rapidapi.com", "x-rapidapi-key": "Enter your X-RapidAPI-Key here" ] let parameters = ["Enter your X-RapidAPI-Key here"] as [String : Any] let postData = JSONSerialization.data(withJSONObject: parameters, options: []) let request = NSMutableURLRequest(url: NSURL(string: "https://titan-ai.p.rapidapi.com/pro/response")! as URL, cachePolicy: .useProtocolCachePolicy, timeoutInterval: 10.0) request.httpMethod = "POST" request.allHTTPHeaderFields = headers request.httpBody = postData as Data let session = URLSession.shared let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in if (error != nil) { print(error) } else { let httpResponse = response as? HTTPURLResponse print(httpResponse) } }) dataTask.resume()