repo_description: 🔥 The open-source no-code platform for web scraping, crawling, search and AI data extraction • Turn websites into structured APIs in minutes 🔥 
repo_topics: agents api automation browser-automation crawler crawling data-extraction no-code nocode playwright robotic-process-automation rpa scraper self-hosted web-scraper web-scraping web-search webscraping
code: import { default as axios } from "axios";
  import { apiUrl } from "../apiConfig";
  
  export const handleUploadCredentials = async (fileName: string, credentials: any, spreadsheetId: string, range: string): Promise<boolean> => {
      try {
          const response = await axios.post(`${apiUrl}/integration/upload-credentials`, { fileName, credentials: JSON.parse(credentials), spreadsheetId, range });
          if (response.status === 200) {
              return response.data;
          } else {
              throw new Error(`Couldn't make gsheet integration for ${fileName}`);
          }
      } catch (error) {
          console.error('Error uploading credentials:', error);
          return false;
      }
  };
  