Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Butler HTTP Request: GET with Headers

Ryan Carlson February 1, 2021

I have been using Butler's HTTP Requests features to POST updates to 3rd party software.  I use the "with headers" option so that I can set HTTP headers which are required for the API.

I am hoping to do something similar but with a GET request.  Is there anyway to pass the "with headers" option on a GET request?  If not, is there a good workaround for this?

2 answers

2 accepted

2 votes
Answer accepted
milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 1, 2021

@Ryan Carlson 

I stumbled upon this same issue and your question prompted me to try again. And I found a way to do this.

post to url "https://38239.wayscript.io/get" with payload "{\"yourURL\" : \"https://domain.myfreshworks.com/crm/sales/api/contacts/16002233290\"}"

My endpoint has a request module which will provide the header and yourURL  and return a json which will be available to Butler as {httpresponse}

You will notice that there is cardidlong in it. I had put it in the CRM record.

Screen Shot 2021-02-02 at 1.56.48 PM.jpgScreen Shot 2021-02-02 at 1.53.50 PM.jpg

milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 2, 2021

@Ryan Carlson 

It can be make for general use by have a different payload since the request module can accept variables....for example

{"yourURL" : "https://domain.myfreshworks.com/crm/sales/api/contacts/16002233290", "yourAuth" : "your specific authorization string for Authorization", "yourConType" : "your content type details for Content-Type" }

 I have changed the endpoint to handle the above. See if it works for you. We can talk details later.

1 vote
Answer accepted
Iain Dooley
Community Champion
February 1, 2021

@Ryan Carlson if you can't see the option in the interface that means it's not available I'd say, the only workaround I can think of would be to post to a Zapier webhook, add the headers in there and then repost.

You could also do this in Trellinator which runs under Google Apps Script, you can read more about it here:

https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Introducing-Trellinator-Automate-Trello-with-Google-Apps-Script/ba-p/925271

Ryan Carlson February 4, 2021

Thank you for confirming that this feature is not supported in the core product.

Zapier would definitely work (We are using this for some other automations).  For our use case, I am leaning against Zapier due to cost concerns.  I want to sync a lot of cards frequently and Zapier's task based pricing is not ideal for this.  

Trellinator looks interesting so thank you for providing that alternative.  I will check it out.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events