Questions tagged [bitly]
32 questions
5
votes
0 answers
Is it possible to make Bitly preserve encoded query parameters?
I'm using Bitly to shorten some URLs (which I have no control over), and the URLs are formatted like:
http://example.net?someParam=abc%2Fdef
Unfortunately, when I pass that URL to Bitly, the %2F gets URL decoded back to a /. I've checked through the…

aaron-bond
- 3,101
- 3
- 24
- 41
2
votes
1 answer
Jenkins artifact short URL / pretty url
How to get a direct short URL for the jenkins build output file.
My last successful build is located at this…

Arun Jose
- 1,857
- 1
- 15
- 24
1
vote
1 answer
Error when calling bitly api from Google apps script: INVALID_ARG_LONG_URL
Trying to shorten URLs through a Google apps script using Bit.ly api:
function shortenURL() {
var longUrl = 'www.google.com';
var shortURL;
var options = {
'method' : 'post',
'contentType': 'application/json',
'payload' :…

user1355179
- 89
- 1
- 8
1
vote
0 answers
Get destination url from a link
I have some links like this redirect urls as below
url(bit.ly/3qOnbQt)
As this is short url. It's destination url is google.com
So i want destination url in react native. So anybody can provide me a solution for a library that can provide me…

Rambler
- 267
- 1
- 12
1
vote
0 answers
Shorten RESTful API using URL shortener
Can I shorten the following URL from
https://www.sanskrit-lexicon.uni-koeln.de/scans/csl-apidev/servepdf.php?dict=VCP&page=3867,a
to something like
bit.ly/abcde?dict=VCP&page=3867,a ?
What I tried:
I tried to shorten…

Dhaval Patel
- 135
- 1
- 1
- 8
1
vote
0 answers
1
vote
1 answer
Send post request with Axios with body and headers
I am working on a project where I need to create a short URL for a link using bitly.
I got success by using the request package of Nodejs.
This is what I have done so far.
const token = process.env.BITLY_ACCESS_TOKEN;
let headers = {
…

Vicky Kumar
- 239
- 7
- 21
1
vote
1 answer
Google Apps Script daily schedule trigger failing
I have set up a function to call the Bitly API to track total clicks for my links. It is set up in a column to track clicks for each individual link. It updates perfectly every time I open the spreadsheet.
Here is the code for this
function…

racker
- 29
- 6
1
vote
2 answers
Bitly API V4 in Google Apps Script: getting errors when trying to call clicks summary
I am fairly new to Apps Script and this is my first custom function using an API. Thankyou in advance for your advice.
I have been following this code to integrate Bitly into Google Sheets.…

racker
- 29
- 6
1
vote
1 answer
Bitly, convert localhost URL cause error INVALID_ARG_LONG_URL, is it expected?
I am testing bitly in development environment with bitly package from npmjs, when I run bitly.shorten(link), I get the following error message:
{
"message": "INVALID_ARG_LONG_URL",
"resource": "bitlinks",
"description": "The value provided is…

Dimitri Kopriwa
- 13,139
- 27
- 98
- 204
0
votes
0 answers
Can you use the Bitly API to get all Bitly links that start with a certain value?
Let's say I have a Bitly link that I know beings with bit.ly/mystery01 and I wanted to get all existing Bitly links that begin that way. Is there a call or method I can use to make that happen or is it not doable? I'm doubtful since the bit.ly link…
0
votes
0 answers
GetResponse -- returns response.Status strings instead of HttpStatusCodes
I coded up a Restsharp call to Bitly's APIs and it worked. I received back the numbered HTTP StatusCode in the 200, 300, 400, and 500 ranges.
Now that switched over to using the BitlyAPI Nuget package, I am getting a string status condition back…

DigDug
- 25
- 8
0
votes
0 answers
JQuery url shortner stopped working due to DEPRECATED_ENDPOINT error
I am sing JQuery urlshortner plugin that hits the external API (https://api-ssl.bit.ly) with passing the required parameter but this is not working since few days. I am seeing below error in browser's console :
{"errorCode": 410, "errorMessage":…

vimal
- 1
- 2
0
votes
0 answers
GmailApp.sendEmail() won't send email with a Bitly URL in body
I have a Google apps script which sends an email with a long URL and a Bitly shortened one. However the GmailApp.sendEmail function silently fails if I include a Bitly URL. Simple example of problem code:
function myFunction() {
var sMail = "(my…

user1355179
- 89
- 1
- 8
0
votes
0 answers
How to use PATCH method that it will work on all php versions?
I use php 7.4.33
This feature of Bitly Api works with patch method: https://dev.bitly.com/api-reference/#updateBitlinksByGroup
If I use below in my code:
curl_setopt($ch, CURLOPT_PATCH, true);
I get:
PHP Warning: Use of undefined constant…

user6774350
- 87
- 6