TinyURL Shortener via Webhook โ n8n ์ํฌํ๋ก
๊ฐ์
This n8n template allows you to automatically create shortened URLs using the TinyURL API by simply sending a webhook request. It's a quick and efficient way to integrate URL shortening into your automated workflows, ideal for sharing long links in social media, emails, or other applications.
๐ง How it works Receive Link Webhook: This node acts as the entry point for the workflow. It listens for incoming POST requests and expects a JSON body containing the url to be shortened and your api_key fo
์ฌ์ฉ๋ ๋ ธ๋
์ํฌํ๋ก ๋ฏธ๋ฆฌ๋ณด๊ธฐ
์๋ ์๋ฆฌ
- 1
ํธ๋ฆฌ๊ฑฐ
์ํฌํ๋ก๋ webhook ํธ๋ฆฌ๊ฑฐ๋ก ์์ํฉ๋๋ค.
- 2
์ฒ๋ฆฌ
๋ฐ์ดํฐ๊ฐ 3๊ฐ์ ๋ ธ๋๋ฅผ ํตํด ํ๋ฆ ๋๋ค, connecting httprequest, respondtowebhook, webhook.
- 3
์ถ๋ ฅ
์ํฌํ๋ก๊ฐ ์๋ํ๋ฅผ ์๋ฃํ๊ณ ๊ตฌ์ฑ๋ ๋์์ ๊ฒฐ๊ณผ๋ฅผ ์ ๋ฌํฉ๋๋ค.
๋ ธ๋ ์ธ๋ถ ์ ๋ณด (3)
HTTP Request
httpRequest
์ด ์ํฌํ๋ก ๊ฐ์ ธ์ค๋ ๋ฐฉ๋ฒ
- 1์ค๋ฅธ์ชฝ์ JSON ๋ค์ด๋ก๋ ๋ฒํผ์ ํด๋ฆญํ์ฌ ์ํฌํ๋ก ํ์ผ์ ์ ์ฅํฉ๋๋ค.
- 2n8n ์ธ์คํด์ค๋ฅผ ์ด๊ณ ์ํฌํ๋ก โ ์๋ก ๋ง๋ค๊ธฐ โ ํ์ผ์์ ๊ฐ์ ธ์ค๊ธฐ๋ก ์ด๋ํฉ๋๋ค.
- 3๋ค์ด๋ก๋๋
tinyurl-shortener-via-webhookํ์ผ์ ์ ํํ๊ณ ๊ฐ์ ธ์ค๊ธฐ๋ฅผ ํด๋ฆญํฉ๋๋ค. - 4๊ฐ ์๋น์ค ๋ ธ๋์ ๋ํ ์๊ฒฉ ์ฆ๋ช ๏ผAPI ํค, OAuth ๋ฑ๏ผ์ ์ค์ ํฉ๋๋ค.
- 5์ํฌํ๋ก ํ ์คํธ๋ฅผ ํด๋ฆญํ์ฌ ๋ชจ๋ ๊ฒ์ด ์๋ํ๋์ง ํ์ธํ ํ ํ์ฑํํฉ๋๋ค.
๋๋ n8n โ JSON์์ ๊ฐ์ ธ์ค๊ธฐ์ ์ง์ ๋ถ์ฌ๋ฃ๊ธฐ:
ํตํฉ
์ด ์ํฌํ๋ก ๊ฐ์ ธ์ค๊ธฐ
ํ ๋ฒ์ ํด๋ฆญ์ผ๋ก ๋ค์ด๋ก๋ ๋ฐ ๊ฐ์ ธ์ค๊ธฐ
JSON ๋ค์ด๋ก๋n8n.io์์ ๋ณด๊ธฐ์ ์์
ist00dent
@ist00dent
ํ๊ทธ
n8n์ ์ฒ์ ์ฌ์ฉํ์๋์?
n8n์ ๋ฌด๋ฃ ์คํ์์ค ์ํฌํ๋ก ์๋ํ ๋๊ตฌ์ ๋๋ค. ์์ฒด ํธ์คํ ํ๊ฑฐ๋ ํด๋ผ์ฐ๋ ๋ฒ์ ์ ์ฌ์ฉํ์ธ์.
n8n ๋ฌด๋ฃ๋ก ์์ํ๊ธฐ โ