It provides guidance and examples to assist you in integrating our API seamlessly into your projects.
Authentication
To ensure secure access to our API, all requests must be authenticated using API keys. Any request made without including an API key will result in an error response.
Please make sure to include your unique API key in the request headers or as a query parameter for every API call. This authentication mechanism helps protect your data and ensures that only authorized requests are processed.
Keep your API key confidential and do not share it with unauthorized individuals. If you suspect any misuse or need assistance regarding API key management, please contact our support team.
You can find your api_keys key in your account page, you just easily copy and paste it. It will serve as your authentication to access data from your projects. Make sure not to share it with anyone.
Endpoints
Tip: We highly recommend using POSTMAN for testing and interacting with our API during the development of your projects. POSTMAN provides a user-friendly interface that allows you to send API requests, inspect responses, and manage your API testing workflow efficiently. It's a valuable tool to ensure smooth integration and debugging of your API interactions.
// API endpoint URL$url ='https://api.fruitask.com/v3/tables/{token}/rows/?api_key=YOUR_API';// Request payload$data =array('name'=>'John Doe','email'=>'john@example.com','age'=>30);// Set headers$headers =array('Content-Type: application/json');// Initialize cURL session$curl =curl_init();// Set cURL optionscurl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_POST, true);curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);// Execute the request$response =curl_exec($curl);// Check for errorsif (curl_errno($curl)) { $error =curl_error($curl);// Handle the errorecho"cURL Error: ". $error;} else {// Process the responseecho $response;}// Close the cURL sessioncurl_close($curl);
consturl='https://api.fruitask.com/v3/tables/{token}/rows/?api_key=YOUR_API';// Request payloadconstdata= { name:'John Doe', email:'john@example.com', age:30};// Set headersconstheaders= {'Content-Type':'application/json'};// Make the API requestfetch(url, { method:'POST', headers: headers, body:JSON.stringify(data)}).then(response =>response.json()).then(data => {// Process the responseconsole.log(data);}).catch(error => {// Handle any errorsconsole.error(error);});
importjava.io.BufferedReader;importjava.io.IOException;importjava.io.InputStreamReader;importjava.io.OutputStream;importjava.net.HttpURLConnection;importjava.net.URL;publicclassAPIClient {publicstaticvoidmain(String[] args) throwsIOException {String apiUrl ="https://api.fruitask.com/v3/tables/{token}/rows/?api_key=YOUR_API";// Request payloadString payload ="{\"name\":\"John Doe\",\"email\":\"john@example.com\",\"age\":30}";URL url =newURL(apiUrl);HttpURLConnection connection = (HttpURLConnection) url.openConnection();// Set request methodconnection.setRequestMethod("POST");// Set request headersconnection.setRequestProperty("Content-Type","application/json");// Enable output and set request bodyconnection.setDoOutput(true);try (OutputStream outputStream =connection.getOutputStream()) {outputStream.write(payload.getBytes()); }// Get responseint responseCode =connection.getResponseCode();BufferedReader reader =newBufferedReader(new InputStreamReader(connection.getInputStream()));String line;StringBuilder response =newStringBuilder();while ((line =reader.readLine()) !=null) {response.append(line); }// Close connectionconnection.disconnect();// Process the responseSystem.out.println("Response Code: "+ responseCode);System.out.println("Response Body: "+response.toString()); }}
// API endpoint URL$url ='https://api.fruitask.com/v3/tables/{token}/rows/{id}/?api_key=YOUR_API';// Request payload$data =array('name'=>'John Doe','email'=>'john@example.com','age'=>30);// Set headers$headers =array('Content-Type: application/json');// Initialize cURL session$curl =curl_init();// Set cURL optionscurl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_CUSTOMREQUEST,'PUT');curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data));curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);// Execute the request$response =curl_exec($curl);// Check for errorsif (curl_errno($curl)) { $error =curl_error($curl);// Handle the errorecho"cURL Error: ". $error;} else {// Process the responseecho $response;}// Close the cURL sessioncurl_close($curl);
consturl='https://api.fruitask.com/v3/tables/{token}/rows/{id}/?api_key=YOUR_API';// Request payloadconstdata= { name:'John Doe', email:'john@example.com', age:30};// Set headersconstheaders= {'Content-Type':'application/json'};// Make the API requestfetch(url, { method:'PUT', headers: headers, body:JSON.stringify(data)}).then(response =>response.json()).then(data => {// Process the responseconsole.log(data);}).catch(error => {// Handle any errorsconsole.error(error);});
importjava.io.BufferedReader;importjava.io.IOException;importjava.io.InputStreamReader;importjava.io.OutputStream;importjava.net.HttpURLConnection;importjava.net.URL;publicclassAPIClient {publicstaticvoidmain(String[] args) throwsIOException {String apiUrl ="https://api.fruitask.com/v3/tables/{token}/rows/{id}/?api_key=YOUR_API";// Request payloadString payload ="{\"name\":\"John Doe\",\"email\":\"john@example.com\",\"age\":30}";URL url =newURL(apiUrl);HttpURLConnection connection = (HttpURLConnection) url.openConnection();// Set request methodconnection.setRequestMethod("PUT");// Set request headersconnection.setRequestProperty("Content-Type","application/json");// Enable output and set request bodyconnection.setDoOutput(true);try (OutputStream outputStream =connection.getOutputStream()) {outputStream.write(payload.getBytes()); }// Get responseint responseCode =connection.getResponseCode();BufferedReader reader =newBufferedReader(new InputStreamReader(connection.getInputStream()));String line;StringBuilder response =newStringBuilder();while ((line =reader.readLine()) !=null) {response.append(line); }// Close connectionconnection.disconnect();// Process the responseSystem.out.println("Response Code: "+ responseCode);System.out.println("Response Body: "+response.toString()); }}
// API endpoint URL$url ='https://api.fruitask.com/v3/tables/{token}/rows/?api_key=Your_Key';// Set headers$headers =array('Content-Type: application/json');// Initialize cURL session$curl =curl_init();// Set cURL optionscurl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);// Execute the request$response =curl_exec($curl);// Check for errorsif (curl_errno($curl)) { $error =curl_error($curl);// Handle the errorecho"cURL Error: ". $error;} else {// Process the responseecho $response;}// Close the cURL sessioncurl_close($curl);
constapiUrl='https://api.fruitask.com/v3/tables/{token}/rows/?api_key=YOUR_API_KEY';fetch(apiUrl).then(response =>response.json()).then(data => {console.log(data); // Do something with the retrieved data }).catch(error => {console.error('Error:', error); });