Urlday # matchurl.com

Urlday # matchurl.com


Urlday provides free unlimited url shortener service with custom endpoint/name and no restriction, no ads, no signup. Get API for free from Urlday

This article covers the entire process of creating a simple URL shortener using webhooks on Urlday . If you need to automate tasks or build a tool which uses a lot of different URLs as input, especially if those URLs are dynamic and require some kind of interaction from website's side, then Urlday can be very helpful. It is free and requires only minutes to set up an account and start using it. Hereby we will use it with PHP but everything explained below should work with any language that supports HTTP requests (and most do).

First thing you need to do is to create an account on Urlday . Once you've created the account with your username and password, you should see your dashboard. Here you can find your API Key (under Settings > My Keys) which is needed for every request you send.

To generate a URL with our custom endpoint, we need to use openUrl function of urlday class available in file urd.php . This php file can be found under /libs/urlday_v7 directory after downloading latest release from github page

URL should be generated from library file by specifying URL endpoint, time interval and generating token which is used to prevent URLs from being re-used. In our example it should look something like this:

$url = urlday::openUr, 'weekly', 'my_generated_token'); Let's break that down a little bit:

: This is the URL we want to shorten the given URLs with. There are multiple endpoints provided by Urlday . Find all of them here api/endpoint . We will generate weekly shortened URLs so we use /v7 endpoint in this example.

: This can be set to "weekly", "daily" or "hourly". In this case we want the URLs to be generated weekly and given back with a time interval of 7 days, so we use /v7/weekly endpoint.

: We've already mentioned generating token above. It is used to make sure that URLs created by Urlday won't be re-used by anyone else (ever). Token should look like urlday_token_ You can generate much more tokens in any timeframe you need but they should all have different tokens because it prevents re-usage of old links which are no longer valid for any reason.

Now that our URL has been generated let's try to use it:

$links = urlday::openUr, $url); Url can be shortened using link returned from this function which also returns list of all links generated by the token we've used. Here is an example of how our output might look like:

There is a lot of other stuff that can be done with Urlday library, but that won't be documented here. You can find more information about library usage on Github page .

If you need any help with Urlday feel free to comment below or message me directly via e-mail: → [email protected] .

Happy shortening! :) If you have found a spelling error, please, notify us by selecting that text and pressing Ctrl+Enter. Thank you!

Article Info Publication Date: 5 September 2017 Title: Urlday URL: -a-simple-url-shortener-with-php-using-urlday/ Tags: Shortened URLs Created by Piotr Krawiec, Esq.

This article is rated 4.5 out of 5 stars based on 10 reviews.

Subscribe to Blog via Email Enter your email address to subscribe to this blog and receive notifications of new posts by email. Join 116 other followers Recent Posts Why (and How) I've Built My Own URL Shortener — It's All About Control — Medium This month we asked our community about their experience with online privacy and anonymity & how they currently accomplish it. The results w... TWC: October Is Coming TWC: September Was Long Alternatives to Google Cloud Storage for Developers Google Cloud Storage has some pretty sweet features but the prices aren't as good as those offered by competing providers such as S3 or ... Google Maps API v2 Deprecation: What It Means for Developers Google Maps API v2 will be deprecated soon and replaced by superior product. Find out how this affects your projects and what you can do ... Creating a URL Shortener with Your Own Custom Domain — Part 2 The first part of this tutorial has been about setting up the database and letting users shorten URLs using our service. This time we w... Copyright © 2011-2018 Piotr Krawiec, Esq.

All content on this site is provided AS IS for your information only, and should not be used anywhere else without expressed written consent from the original author. Contact: [email protected]

This work is licensed under a Creative Commons 4.0 International License . See full list of free usable content and creative commons licenses at: Licenses & Attributions .

Please email me if you have any questions. I'll be happy to help! :) Privacy Policy

If you agree with this, please share it as much as possible. Thanks! Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (never shown) Name (required) Website You are commenting using your WordPress.com account. ( Log Out / Change ) Subscribe to our mailing list * indicates required Email Address * First Name Last Name Date May 7, 2012 - Urlday There is a new method which allows you shorten URLs in a very simple way with your own custom endpoint. You can use this for your...

May 7, 2012 - Urlday

There is a new method which allows you shorten URLs in a very simple way with your own custom endpoint. You can use this for your commercial projects for free! It's backend code is written in PHP and it uses MySQL so you don't have to worry about scaling too much because it will work just fine as long as server meets requirements. The whole project is available on Github . Here I'll show how to set everything up from scratch that means we'll have only dummy files installed but fully functional backend that will be ready to go live 🚀 There are many ways how you can setup URL shortener

We are social