← Google Drive + Quipu integrations

Create Contact with Quipu API on New or Modified Folders from Google Drive API

Pipedream makes it easy to connect APIs for Quipu, Google Drive and 1200+ other apps remarkably fast.

Trigger workflow on
New or Modified Folders from the Google Drive API
Next, do this
Create Contact with the Quipu API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Google Drive trigger and Quipu action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New or Modified Folders trigger
    1. Connect your Google Drive account
    2. Select a Drive
    3. Optional- Configure Watch for changes to file properties
    4. Configure Push notification renewal schedule
  3. Configure the Create Contact action
    1. Connect your Quipu account
    2. Configure Name
    3. Configure Tax ID (CIF/NIF)
    4. Configure Postal Code
    5. Configure Country
    6. Optional- Configure Phone
    7. Optional- Configure Email
    8. Optional- Configure Address
    9. Optional- Configure Town
    10. Optional- Configure Client Number
    11. Optional- Configure Supplier Number
    12. Optional- Configure Is Supplier of Direct Goods
    13. Optional- Configure Bank Account Number
    14. Optional- Configure Bank Account Swift
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event any time any folder in your linked Google Drive is added, modified, or deleted
Version:0.1.1
Key:google_drive-new-or-modified-folders

Google Drive Overview

Using the Google Drive API, you can build applications that:

  • Create and manage files and folders
  • Download and upload files
  • Share and organize files
  • Search for files
  • Track changes to files
  • And much more!

Trigger Code

// This source processes changes to any files in a user's Google Drive,
// implementing strategy enumerated in the Push Notifications API docs:
// https://developers.google.com/drive/api/v3/push and here:
// https://developers.google.com/drive/api/v3/manage-changes
//
// This source has two interfaces:
//
// 1) The HTTP requests tied to changes in the user's Google Drive
// 2) A timer that runs on regular intervals, renewing the notification channel as needed

import common from "../common-webhook.mjs";
import {
  GOOGLE_DRIVE_NOTIFICATION_ADD,
  GOOGLE_DRIVE_NOTIFICATION_CHANGE,
  GOOGLE_DRIVE_NOTIFICATION_UPDATE,
} from "../../constants.mjs";

export default {
  ...common,
  key: "google_drive-new-or-modified-folders",
  name: "New or Modified Folders",
  description: "Emit new event any time any folder in your linked Google Drive is added, modified, or deleted",
  version: "0.1.1",
  type: "source",
  // Dedupe events based on the "x-goog-message-number" header for the target channel:
  // https://developers.google.com/drive/api/v3/push#making-watch-requests
  dedupe: "unique",
  hooks: {
    async deploy() {
      const daysAgo = new Date();
      daysAgo.setDate(daysAgo.getDate() - 30);
      const timeString = daysAgo.toISOString();

      const { data } = await this.googleDrive.drive().files.list({
        q: `mimeType = "application/vnd.google-apps.folder" and modifiedTime > "${timeString}" and trashed = false`,
        fields: "files(id, mimeType)",
      });

      await this.processChanges(data.files);
    },
    ...common.hooks,
  },
  methods: {
    ...common.methods,
    _getLastModifiedTimeForFile(fileId) {
      return this.db.get(fileId);
    },
    _setModifiedTimeForFile(fileId, modifiedTime) {
      this.db.set(fileId, modifiedTime);
    },
    getUpdateTypes() {
      return [
        GOOGLE_DRIVE_NOTIFICATION_ADD,
        GOOGLE_DRIVE_NOTIFICATION_CHANGE,
        GOOGLE_DRIVE_NOTIFICATION_UPDATE,
      ];
    },
    generateMeta(data, ts) {
      const {
        id: fileId,
        name: summary,
      } = data;
      return {
        id: `${fileId}-${ts}`,
        summary,
        ts,
      };
    },
    async getChanges(headers) {
      if (!headers) {
        return;
      }
      const resourceUri = headers["x-goog-resource-uri"];
      const metadata = await this.googleDrive.getFileMetadata(`${resourceUri}&fields=*`);
      return {
        ...metadata,
        change: {
          state: headers["x-goog-resource-state"],
          resourceURI: headers["x-goog-resource-uri"],
          changed: headers["x-goog-changed"], // "Additional details about the changes. Possible values: content, parents, children, permissions"
        },
      };
    },
    async processChanges(changedFiles, headers) {
      const files = changedFiles.filter(
        // API docs that define Google Drive folders:
        // https://developers.google.com/drive/api/v3/folder
        (file) => file.mimeType === "application/vnd.google-apps.folder",
      );

      for (const file of files) {
        // The changelog is updated each time a folder is opened. Check the
        // folder's `modifiedTime` to see if the folder has been modified.
        const fileInfo = await this.googleDrive.getFile(file.id);

        const lastModifiedTimeForFile = this._getLastModifiedTimeForFile(file.id);
        const modifiedTime = Date.parse(fileInfo.modifiedTime);
        if (lastModifiedTimeForFile == modifiedTime) continue;

        const changes = await this.getChanges(headers);

        const eventToEmit = {
          file: fileInfo,
          ...changes,
        };
        const meta = this.generateMeta(fileInfo, modifiedTime);

        this.$emit(eventToEmit, meta);

        this._setModifiedTimeForFile(file.id, modifiedTime);
      }
    },
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Google DrivegoogleDriveappThis component uses the Google Drive app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
DrivedrivestringSelect a value from the drop down menu.
Watch for changes to file propertieswatchForPropertiesChangesboolean

Watch for changes to file properties
in addition to changes to content. Defaults to false, watching for only changes to content.

Push notification renewal scheduletimer$.interface.timer

The Google Drive API requires occasional renewal of push notification subscriptions. This runs in the background, so you should not need to modify this schedule.

Trigger Authentication

Google Drive uses OAuth authentication. When you connect your Google Drive account, Pipedream will open a popup window where you can sign into Google Drive and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Google Drive API.

Pipedream requests the following authorization scopes when you connect your account:

emailprofilehttps://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.readonly

About Google Drive

Internet-related services and products

Action

Description:Creates a new contact. [See the docs](http://quipuapp.github.io/api-v1-docs/#creating-a-contact).
Version:0.0.1
Key:quipu-create-contact

Quipu Overview

With the Quipu API you can create powerful, feature-rich and fully-adaptable
invoicing applications for your business.

Examples of you can create with the Quipu API:

  • Invoice generators
  • Invoice tracking systems
  • Document and customer management solutions
  • Customizable invoice layout solutions
  • Automated customer onboarding
  • Document signing solutions
  • Automated payroll solutions
  • Customizable G/L integrations
  • Automated notifications and email reminders
  • Tax management tools
  • Real-time reporting dashboards
  • Automated document conversion solutions
  • Automated payment solutions

The Quipu API is used by small and large businesses of all kinds, anywhere in
the world. Whether you're a freelancer, online merchant, or a large enterprise,
Quipu API has the tools to get the job done quickly and efficiently.

So think no more, let Quipu API do the work for you and save you time and
money!

Action Code

import app from "../../quipu.app.mjs";

export default {
  key: "quipu-create-contact",
  name: "Create Contact",
  description: "Creates a new contact. [See the docs](http://quipuapp.github.io/api-v1-docs/#creating-a-contact).",
  version: "0.0.1",
  type: "action",
  props: {
    app,
    name: {
      type: "string",
      label: "Name",
      description: "Contact full name.",
    },
    taxId: {
      type: "string",
      label: "Tax ID (CIF/NIF)",
      description: "Contact tax id, (CIF/NIF).",
    },
    zipCode: {
      type: "string",
      label: "Postal Code",
      description: "Address postal code.",
    },
    countryCode: {
      type: "string",
      label: "Country",
      description: "Address country code, ISO 3166-2 format of e.g: `US`, `ES`, `PT`.",
    },
    phone: {
      type: "string",
      label: "Phone",
      description: "Contact's phone number.",
      optional: true,
    },
    email: {
      type: "string",
      label: "Email",
      description: "Contact's email address.",
      optional: true,
    },
    address: {
      type: "string",
      label: "Address",
      description: "Contact's address.",
      optional: true,
    },
    town: {
      type: "string",
      label: "Town",
      description: "Contact's town.",
      optional: true,
    },
    clientNumber: {
      type: "integer",
      label: "Client Number",
      description: "Contact's client number.",
      optional: true,
    },
    supplierNumber: {
      type: "string",
      label: "Supplier Number",
      description: "The supplier number of the contact",
      optional: true,
    },
    isSupplierOfDirectGoods: {
      type: "boolean",
      label: "Is Supplier of Direct Goods",
      description: "Is the contact supplier of direct goods?",
      optional: true,
    },
    bankAccountNumber: {
      type: "string",
      label: "Bank Account Number",
      description: "The bank account number of the contact",
      optional: true,
    },
    bankAccountSwift: {
      type: "string",
      label: "Bank Account Swift",
      description: "The bank account swift of the contact",
      optional: true,
    },
  },
  async run({ $ }) {
    const attributes = {
      "name": this.name,
      "tax_id": this.taxId,
      "phone": this.phone,
      "email": this.email,
      "address": this.address,
      "town": this.town,
      "zip_code": this.zipCode,
      "country_code": this.countryCode,
      "client_number": this.clientNumber,
      "supplier_number": this.supplierNumber,
      "is_supplier_of_direct_goods": this.isSupplierOfDirectGoods,
      "bank_account_number": this.bankAccountNumber,
      "bank_account_swift_bic": this.bankAccountSwift,
    };
    const contact = await this.app.createContact($, attributes);
    $.export("$summary", `Successfully created contact with ID "${contact.id}"`);
    return contact;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
QuipuappappThis component uses the Quipu app.
Namenamestring

Contact full name.

Tax ID (CIF/NIF)taxIdstring

Contact tax id, (CIF/NIF).

Postal CodezipCodestring

Address postal code.

CountrycountryCodestring

Address country code, ISO 3166-2 format of e.g: US, ES, PT.

Phonephonestring

Contact's phone number.

Emailemailstring

Contact's email address.

Addressaddressstring

Contact's address.

Towntownstring

Contact's town.

Client NumberclientNumberinteger

Contact's client number.

Supplier NumbersupplierNumberstring

The supplier number of the contact

Is Supplier of Direct GoodsisSupplierOfDirectGoodsboolean

Is the contact supplier of direct goods?

Bank Account NumberbankAccountNumberstring

The bank account number of the contact

Bank Account SwiftbankAccountSwiftstring

The bank account swift of the contact

Action Authentication

Quipu uses OAuth authentication. When you connect your Quipu account, Pipedream will open a popup window where you can sign into Quipu and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Quipu API.

Pipedream requests the following authorization scopes when you connect your account:

ecommerce

About Quipu

Online bookkeeping service

More Ways to Connect Quipu + Google Drive

Create Contact with Quipu API on Changes to Specific Files (Shared Drive) from Google Drive API
Google Drive + Quipu
 
Try it
Create Contact with Quipu API on Changes to Specific Files from Google Drive API
Google Drive + Quipu
 
Try it
Create Contact with Quipu API on New or Modified Comments from Google Drive API
Google Drive + Quipu
 
Try it
Create Contact with Quipu API on New or Modified Files from Google Drive API
Google Drive + Quipu
 
Try it
Create Contact with Quipu API on New Files (Instant) from Google Drive API
Google Drive + Quipu
 
Try it
Changes to Specific Files from the Google Drive API

Watches for changes to specific files, emitting an event any time a change is made to one of those files. To watch for changes to shared drive files, use the Changes to Specific Files (Shared Drive) source instead.

 
Try it
Changes to Specific Files (Shared Drive) from the Google Drive API

Watches for changes to specific files in a shared drive, emitting an event any time a change is made to one of those files

 
Try it
New Files (Instant) from the Google Drive API

Emit new event any time a new file is added in your linked Google Drive

 
Try it
New or Modified Comments from the Google Drive API

Emits a new event any time a file comment is added, modified, or deleted in your linked Google Drive

 
Try it
New or Modified Files from the Google Drive API

Emit new event any time any file in your linked Google Drive is added, modified, or deleted

 
Try it
Add File Sharing Preference with the Google Drive API

Add a sharing permission to the sharing preferences of a file and provide a sharing URL. See the docs for more information

 
Try it
Copy File with the Google Drive API

Create a copy of the specified file. See the docs for more information

 
Try it
Create a New File with the Google Drive API

Create a new file from a URL or /tmp/filepath. See the docs for more information

 
Try it
Create Folder with the Google Drive API

Create a new empty folder. See the docs for more information

 
Try it
Create New File From Template with the Google Drive API

Create a new Google Docs file from a template. Optionally include placeholders in the template document that will get replaced from this action. See documentation

 
Try it

Explore Other Apps

1
-
12
of
1200+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Beta
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Beta
Data Stores
Data Stores
Use Pipedream Data Stores to manage state throughout your workflows.
Telegram Bot
Telegram Bot
Telegram is a cloud-based instant messaging and voice over IP service
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular apps like ChatGPT and DALL·E 2.
Google Sheets
Google Sheets
With Google Sheets, you can create, edit, and collaborate wherever you are
Discord
Discord
Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
GitHub
GitHub
Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.
Formatting
Formatting
Pre-built actions to make formatting and manipulating data within your workflows easier.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.