Basic subscription Plan

(Endpoints & SDKs)

Endpoint: /basic/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/basic/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\" }"); CURLcode1 ret = curl_easy_perform(hnd);


(require '[clj-http.client :as client]) (client/PUT "https://titan-ai.p.rapidapi.com/basic/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/basic/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/basic/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.EnsureSuccessStatuscode1(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }


var client = new RestClient("https://titan-ai.p.rapidapi.com/basic/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/basic/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 /basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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": "/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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; }


$headers=@{} $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/basic/data' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your text here" }'


$headers=@{} $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/basic/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", "/basic/data", payload, headers) res = conn.getresponse() data = res.read() print(data.decode1("utf-8"))


import requests url = "https://titan-ai.p.rapidapi.com/basic/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", "/basic/data", payload, headers) res = conn.getresponse() data = res.read() print(data.decode1("utf-8"))


library(httr) url <- "https://titan-ai.p.rapidapi.com/basic/data" payload <- "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your text here\"\n}" encode1 <- "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"), encode1 = encode1) 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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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: /basic/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/basic/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\" }"); CURLcode2 ret = curl_easy_perform(hnd);


(require '[clj-http.client :as client]) (client/PUT "https://titan-ai.p.rapidapi.com/basic/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/basic/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/basic/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.EnsureSuccessStatuscode2(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }


var client = new RestClient("https://titan-ai.p.rapidapi.com/basic/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/basic/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 /basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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": "/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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; }


$headers=@{} $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/basic/rule' -Method PUT -Headers $headers -ContentType 'application/json' -Body '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter your rules here" }'


$headers=@{} $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/basic/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", "/basic/rule", payload, headers) res = conn.getresponse() data = res.read() print(data.decode2("utf-8"))


import requests url = "https://titan-ai.p.rapidapi.com/basic/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", "/basic/rule", payload, headers) res = conn.getresponse() data = res.read() print(data.decode2("utf-8"))


library(httr) url <- "https://titan-ai.p.rapidapi.com/basic/rule" payload <- "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter your rules here\"\n}" encode2 <- "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"), encode2 = encode2) 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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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: /basic/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/basic/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\" }"); CURLcode3 ret = curl_easy_perform(hnd);


(require '[clj-http.client :as client]) (client/POST "https://titan-ai.p.rapidapi.com/basic/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/basic/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/basic/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.EnsureSuccessStatuscode3(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }


var client = new RestClient("https://titan-ai.p.rapidapi.com/basic/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/basic/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 /basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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": "/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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; }


$headers=@{} $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/basic/query' -Method POST -Headers $headers -ContentType 'application/json' -Body '{ "id": "Enter your X-RapidAPI-Key here", "content": "Enter a question here" }'


$headers=@{} $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/basic/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", "/basic/query", payload, headers) res = conn.getresponse() data = res.read() print(data.decode3("utf-8"))


import requests url = "https://titan-ai.p.rapidapi.com/basic/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", "/basic/query", payload, headers) res = conn.getresponse() data = res.read() print(data.decode3("utf-8"))


library(httr) url <- "https://titan-ai.p.rapidapi.com/basic/query" payload <- "{\n \"id\": \"Enter your X-RapidAPI-Key here\",\n \"content\": \"Enter a question here\"\n}" encode3 <- "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"), encode3 = encode3) 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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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: /basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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 /basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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": "/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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; }


$headers=@{} $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/basic/response' -Method POST -Headers $headers -ContentType 'application/json' -Body '[ "Enter your X-RapidAPI-Key here" ]'


$headers=@{} $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/basic/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", "/basic/response", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))


import requests url = "https://titan-ai.p.rapidapi.com/basic/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", "/basic/response", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))


library(httr) url <- "https://titan-ai.p.rapidapi.com/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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/basic/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()

Getting Started

Welcome to the Titan API demo,

You have access to a cognitive agent with a pre-configured session timeout of 60 minutes. If you wish to continue testing after your session expires, you need to reload your web browser tab to access a new agent.

After your session expires or your browser is reset, we will automatically discard your previously loaded content.

Getting started with the Titan API Demo

Your agent does not have any information and does not know anything.

You can teach your agent by adding content (in the form of text) to its knowledge base.

Your agent will learn your content in real-time.

You can ask your agent questions regarding the content you provided.

  • If the answer is in the agent knowledge base, the agent will answer your question.
  • If the answer is not in the agent knowledge base, the agent will respond “I don’t know.”

The agent will continuously learn and answer more questions as you add content.

More Content –> Deeper Inference.

Usage

  • PoS:

Part-Of-Speech (PoS) tagger labels words as one of several categories to identify the word’s function in a given language.

  • Actions:

Titan Action System produces a table to identify the intents and actions in a given language.

  • Facts:

Titan Fact System produces a table to identify factual information in a given language.

  • Relations:

Titan graph Engine automatically constructs semantic representations from textual data sources.

  • Search:

Titan Cognitive Search Engine provides answers to inquiries about upload text. The questions should be in the form of: Who, What, When Where, and Why?

  • Instruct:

Titan Instruction System allows you to setup rules to govern and manage your Agent’s actions.

  • Insight:

Titan Insight System produces a report to identify knowledge either directly the provided text or inferred a combination of different content sources.