URL Logger reply back with custom token

More
2 years 3 months ago - 2 years 3 months ago #23803 by prashant
Hellos, 

I have an interesting request

I am trying to setup a slack bot which send the following webhook with 
Code:
{ "token": "sewf87w3rp48DMWJLXBhvhSy", "challenge": "GWuXDWpzf8tkuD7aWbNiOqAWYybmpBRl2broar4AI0vCH88KR3I9", "type": "url_verification" }

I need to reply back with challenge token instead / in addition  of the regular 200
Last edit: 2 years 3 months ago by prashant.

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #23804 by admin
We will have a look at it.

Mike
ETL Architect
The following user(s) said Thank You: prashant

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #23867 by admin
Your suggestion was implemented in the latest release

You will find an example here

www.etl-tools.com/wiki/url-logger/urls/

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #23868 by prashant
hi, 

this custom reply is dynamic  or hardcoded ? 

if dynamic(which is what slack is demanding) , how do I reply back with the challenge token which came with incoming request?

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #23869 by admin
Custom reply is dynamic.

You can use parts of request data if you want to.

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #23870 by prashant
Can you please help me with the code for the same ? 

Let's take the object I started with 
Code:
{ "token": "sewf87w3rp48DMWJLXBhvhSy", "challenge": "GWuXDWpzf8tkuD7aWbNiOqAWYybmpBRl2broar4AI0vCH88KR3I9", "type": "url_verification" }

Also any example of code within an array object if any 

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save