Loading

Code by Zapier + Webhooks by Zapier + Referral Rock Integrations

How to connect Code by Zapier + Webhooks by Zapier + Referral Rock

Zapier lets you send info between Code by Zapier and Webhooks by Zapier and Referral Rock automatically—no code required. With 5,000+ supported apps, the possibilities are endless.

Choose a Trigger
Start herearrow pointing down
Start herearrow pointing down
Choose an Action
Choose an Action
Connect Apps
  • Free forever for core features
  • 14 day trial for premium features & apps

Do even more with Code by Zapier + Webhooks by Zapier + Referral Rock

With Zapier, you can do more than just connect your apps - you can automate entire processes from beginning to end! Check out the following list of triggers and actions you can use with Code by Zapier, Webhooks by Zapier, and Referral Rock. And don’t forget that you can add more apps and actions to create complex workflows.

Supported triggers and actions

What does this mean?
    • CodeRequired

      Warning! This is an advanced trigger! Uses Node 10.x.x. Please read the Code documentation for more information.

    • Zap Id

    Trigger
    Scheduled
    Try It
    • Input Data

      Use the Input Data fields above to assign key names (left) and map values (right) from previous steps. Use notation inputData.keyName or inputData['keyName'] to access the values within your code. The data will be provided as strings. Learn more here.

    • CodeRequired

      Warning! This is an advanced action! Uses Node 10.x.x. Please read the Code documentation for more information.

    • Zap Id

    Action
    Write
    • URLRequired

      This should return a list of dictionaries of content type JSON in reverse chronological order. For example: [{"id":1234},{"id":1235}]

    • Key

      If the returned JSON is not a list and is instead an object (maybe paginated), enter the key that contains the results. Example: "results", "items", "objects", etc... (children via dot syntax supported)

    • Deduplication Key

      Zapier deduplicates the array we see each poll against the id key. If the id key does not exist, you should specify an alternative unique key to deduplicate off of. If neither are supplied, we fallback to looking for the shortest key with id in it otherwise we will raise an error.

    • Xpath

      If the content fetched is XML or HTML, optionally define an xpath to extract data from the content. Will trigger whenever the content at the xpath changes!

    • Basic Auth

      A pipe (|) separated username, password combo for standard HTTP authentication.

    • Headers

      Key, value pairs to be added as headers in all requests.

    Trigger
    Scheduled
    Try It
    • Pick off a Child Key

      By default, Zapier gives you the entire payload of the webhook. If this is specified, Zapier will only grab the child key from the object(s) sent to Zapier. For example, given {"contact": {"name": "Mike"}}, add "contact" here to only return {"name": "Mike"}. Traverse more deeply nested children by using dot-separated syntax. Line item payloads will run your Zap for each instance of the child key.

    Trigger
    Instant
    Try It
  • Trigger
    Scheduled
    Try It
    • Input Data

      Use the Input Data fields above to assign key names (left) and map values (right) from previous steps. Use notation input_data['keyName'] to access the values within your code. The data will be provided as strings. Learn more here.

    • CodeRequired

      Warning! This is an advanced trigger! Please read the Code documentation for more information.

    • Zap Id

    Action
    Write
  • Webhooks by Zapier triggers, actions, and search

    Catch Raw Hook

    Wait for a new POST, PUT, or GET to a Zapier URL. Gives the request body unparsed (max 2 MB) and also includes headers.

    Trigger
    Instant
    Try It
    • MethodRequired

      The HTTP method we'll use to perform the request.

    • URLRequired

      Any URL with a querystring will be re-encoded properly.

    • Data Pass-Through?

      If yes, request data below will be overridden with the raw data from the previous step (you are still responsible for headers though, like Content-Type). Defaults to no.

    • Data

      Place raw data for the request here. Could be JSON, XML, etc. Nothing is parsed for you here (including extra line breaks or spaces -- everything is sent verbatim). You probably need to define a header below corresponding to your data Content-Type. Reminder: data provided in this field is completely ignored if you chose "yes" to pass-through.

    • Unflatten

      By default we convert fields with double underscores into nested dictionaries. Select no here to turn this behavior off.

    • Basic Auth

      A pipe (|) separated username, password combo for standard HTTP authentication.

    • Headers

      Key, value pairs to be added as headers in all requests.

    Action
    Write

Top companies trust Zapier to automate work and free up time

Connect your apps and automate workflows

Easy automation for busy people. Zapier moves info between your web apps automatically, so you can focus on your most important work.


OR

By signing up, you agree to Zapier's terms of service and privacy policy.


OR

By signing up, you agree to Zapier's terms of service and privacy policy.

How Code by Zapier + Webhooks by Zapier + Referral Rock Integrations Work

  1. Step 1: Authenticate Code by Zapier, Webhooks by Zapier, and Referral Rock.
    30 seconds
  2. Step 2: Pick one of the apps as a trigger, which will kick off your automation.
    15 seconds
  3. Step 3: Choose a resulting action from the other app.
    15 seconds
  4. Step 4: Select the data you want to send from one app to the other.
    2 minutes
  5. That’s it! More time to work on other things.
code logo

About Code by Zapier

Write custom Python or Javascript code in response to any data from any service! Transform, mutate, customize or even do custom HTTP in a native and familiar environment.

Related categories

  • Developer Tools
  • Zapier
webhook logo
webhook logo

About Webhooks by Zapier

Webhooks simply POST data (or JSON) to a specific URL every time we see something new. Webhooks can also accept data (or JSON) to kick off a workflow in Zapier.

Related categories

referral-rock logo

Get started for free

You can't add more hours to the day. Zapier is the next best thing.


OR

By signing up, you agree to Zapier's terms of service and privacy policy.