Shorten the Long URL from FileMaker using cURL – Bitly V4
In this post, we will talk about how to shorten the Long URL from FileMaker using cURL. It will work above FileMaker version 15.
Overview:
FBitly is a URL shortening service and a link management platform. In our Previous Blog (https://fmdbsolutions.com/shorten-the-long-url-from-filemaker-using-curl/), we have mentioned the shortened the long url using Bitly (Version – V3) from FileMaker using cURL, this is expired now. Here are the steps to shorten the long url using Bitly (Version – V4) from FileMaker using cURL.
Step 1: Creating an Account in BitLink to Integrate with FileMaker.
- Go to the Bitlink (https://bitly.com/) and create a Bitlink Account. After creating the account please note the username and password.
Step 2: Create a new script in the FileMaker database.
- In the FileMaker database create a new script to shorten the Long URL.
- First need to generate an “Access Token”, for that use the “Insert from URL” script step. In “Insert from URL” under specify url, need to specify the authentication url, like below.
In “Insert from URL” under specify cURL, need to specify Bitly account username and password, like below,
- After “Insert from URL” step executed, Access Token will be generated in the specified field. Note this Access Token in a variable.
- Next need to generate a “Group GUID”, for that use the “Insert from URL” script step. In “Insert from URL” under specify url, need to specify the group url, like below.
In “Insert from URL” under specify cURL, need to specify following detail like below,
- After “Insert from URL” step executed, Group GUID will be generated in the specified field. Note this Group GUID in a variable, like below
- Next shorten the long url, for that first create JSON data format in a variable like below,
In “Insert from URL” under specify url, need to specify the shorten url, like below.
In “Insert from URL” under specify cURL, need to specify following detail like below,
- After “Insert from URL” step executed, The long URL has shortened and stored in the specified field.
- Using the JSON functions, we can pick shorten URL from the field, like below
- If we implement the above-mentioned steps, then we can able to shorten the Long URL from FileMaker using cURL.
- Here is an example of a long URL“https://support.bitly.com/hc/en-us/articles/360004395631?utm_medium=bitly&utm_source=pendo&utm_campaign=api_free_final”After Script execute, the following shorten URL generate“http://bit.ly/2DCSA14”.
The team at FMDBSolutions hopes this article taught you how to Shorten the Long URL from FileMaker using cURL. FMDBSolutions is a team of well-qualified experts that have a lot of experience with the many versions of FileMaker Pro and the FileMaker Go app too.
Our team knows all about transitioning, migrating, converting, and upgrading for FileMaker. Companies that require FileMaker Integration can also use our services. We have worked with clients from the USA, Australia, and Singapore and will complete your FileMaker assignment in the best possible way at a lower price but the same or higher level of excellence.
If you want solutions to your FileMaker database, we can help. Click the below box for a free FileMaker consultation
You can also leave us your email below for receiving new updates regarding FileMaker and our company.