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.
- 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.
CodeRequired
Warning! This is an advanced trigger! Uses Node 10.x.x. Please read the Code documentation for more information.
Zap Id
Try ItInput Data
Use the Input Data fields above to assign key names (left) and map values (right) from previous steps. Use notation
inputData.keyName
orinputData['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
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 theid
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 withid
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.
Try ItPick 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.
Try It
CodeRequired
Warning! This is an advanced trigger! Please read the Code documentation for more information.
Zap Id
Try ItInput 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
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.
Try ItMethodRequired
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, likeContent-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.
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.
How Code by Zapier + Webhooks by Zapier + Referral Rock Integrations Work
- Step 1: Authenticate Code by Zapier, Webhooks by Zapier, and Referral Rock.30 seconds
- Step 2: Pick one of the apps as a trigger, which will kick off your automation.15 seconds
- Step 3: Choose a resulting action from the other app.15 seconds
- Step 4: Select the data you want to send from one app to the other.2 minutes
- That’s it! More time to work on other things.
Related categories
Related categories
Related categories
Get started for free
You can't add more hours to the day. Zapier is the next best thing.