Adding dynamic urls

So I am implementing Pabbly into my plugin North Commerce (WordPress Plugin) and wanted to double check I understand the API endpoint correctly.

https://forum.pabbly.com/attachments/1635770959609-png.5022/<------- In this image it shows how to setup my webhook endpoint. How am i able to add a dynamic url into the url here based on the domain the user's pluigin is installed. I saw this note "Note: you can use parameters within double curly braces e.g. https://{{subdomain}}.example.com/api/v3/contacts?api-key={{api-key}} in the API Endpoint URL (if required)" but wanted to double check I could use an entire domain for this?

I have also attached a photo of what it looks like in Zapier. Is it possible to store the site_url somewhere when a user authenticates like in Zapier?
 

Attachments

  • Screenshot 2022-01-28 105321.jpg
    Screenshot 2022-01-28 105321.jpg
    15 KB · Views: 115
P

Pabblymember11

Guest
Hey @northplugins

In the case of a dynamic domain or subdomain in the API URL, you can pass the subdomain in the following ways.

1) Subdomain:
https://{{subdomain}}.example.com/api/v3/contacts

2) Domain:
https://{{domain}}/api/v3/contacts
 
Top