How do I shorten a URL with Bitly?

This topic was automatically generated from Slack. You can find the original thread here.

Andras Bondor : Did anyone use Bitly successfully? The integrated action only has “https://api-ssl.bitly.com/v4/user” in it, and when I change it to “https://api-ssl.bitly.com/v4/shorten”, I’m getting a “405 Method Not Allowed” error. I can’t seem to be able to figure out this stupidly simple thing as issuing a post request to get a shortened link from them via Pipedream…

Tod Sacerdoti : Can you check out this working Bit.ly example? Please let me know if this works for you.

https://pipedream.com/@tod/bit-ly-api-integration-example-p_vQCgn1Y/

Tod Sacerdoti : I also added a new Bit.ly action for “Shorten a URL”

Andras Bondor : Thank you Tod, you are a legend! Checked the code as well, seems like I missed quite a few parameters when trying. Appreciate your quick response!