Questions tagged [bit.ly]

Bit.ly is an URL-shortening service

Bitly is an URL-shortening service, which provides an extensive API for programmers to easily integrate URL-shortening services into their own applications. Bitly's API supports JSON and XML, and allows retrieving statistics about specific short URLs.

203 questions
0
votes
0 answers

How do I customize the shorten url that Bit.ly Pro creates?

With bit.ly I can create a shorten url than I can then customize: http://www.myreallylongdomainname/reallylongpagename.html becomes... http://bit.ly/a8D83b becomes http://bit.ly/customtext How do I do this with bit.ly pro api?
Chris Craft
  • 5,285
  • 6
  • 46
  • 63
0
votes
1 answer

Is there a way to get the real address of bit.ly?

I'm working on understanding the original web page of bit.ly hrefs, and I would like to know if there is a way to get at the real address of the bit.ly using python. Any advice/directions would be appreciated!
halo09876
  • 2,725
  • 12
  • 51
  • 71
0
votes
2 answers

Why am I getting a nil object instead of a shortlink from bitly?

I'm using a simple enough bitly implementation based on this example: http://www.appelsiini.net/2010/using-bitly-with-httparty I put this file in the lib folder (bitly.rb) require 'rubygems' require 'httparty' class Bitly include HTTParty …
Kenji Crosland
  • 2,914
  • 6
  • 31
  • 40
0
votes
0 answers

Accessing bitly api from app

Hey everyone I was trying to create a URL Shortener android app using bitly api. I have registered my app on bitly and received an API key. I know in order to access bitly's API I need to use an access token which I can get using OATH2 method and I…
0
votes
1 answer

Setting up the get_shorty plugin for bit.ly shortlinks on rails

I'm trying to get bit.ly shortlinks to link to one of my model's show pages for Twitter functionality that I want to incorporate into my app. It seems like the https://github.com/playgood/get_shorty is the best thing I could find out there, but I'm…
Kenji Crosland
  • 2,914
  • 6
  • 31
  • 40
0
votes
0 answers

Grab URL from element on page for Bitly URL shortening

I'm working in shopify - attempting to do this client-side I have a URL being generated (based on what items are in the cart presently) that adds items to the cart based on their ID#. I'm building this little thing for our sales team, so they can…
kallen27
  • 1
  • 2
0
votes
0 answers

How do I Use JS to Call a PHP Script that Makes a Call To Bitly API

So, I am Trying to Use JS AJAX, and PHP on a website I am working on to use the Bitly API. Basically This is the Process I am trying to Create User Types In URL in Search Box -> JS AJAX makes a Call to a PHP File On My Site ->PHP Script gets short…
0
votes
1 answer

Bitly API: batch handling clicks endpoint

I am using the Bitly API to track clicks of Bitly links posted on my network. At the moment I have to track them one by one. In the bitly docs I have read that the best practice is one of making a batch call to the /clicks endpoint. However in the…
0
votes
1 answer

bit.ly Pro "out of" Clicks Statistics

I use bit.ly Pro to view link statistic of my shorten links. In the overview you see to each link the click rate and it states for example: "1 out of 4" What does this 4 mean? It makes no sense to me.
hkropp
  • 553
  • 2
  • 5
  • 14
0
votes
1 answer

Bit.ly custom query - ruby gem

According to https://dev.bitly.com/link_metrics.html#v3_link_clicks, we can send multiple parameters like link, unit, etc. Here i am using this gem https://github.com/philnash/bitly i am actually looking for Clicks by Day, i tried…
0
votes
1 answer

Using Bitly library in Scala

Unable to get scala to build after adding bitly-api-client. Below is link that points to Maven repo but it seems is missing from the repo. https://github.com/stackmagic/bitly-api-client I added below line to build.sbt but I keep on getting…
Api
  • 1,582
  • 1
  • 14
  • 16
0
votes
1 answer

bitly raise error exception rspec test

I'm trying to write a simple rspec test for bitly raise error exception. How can I write the expect to match the error message ALREADY_A_BITLY_LINK - '500' with the raise_error(BitlyError). This rspec actually pass. But if I were to use the same…
khoamle
  • 676
  • 2
  • 7
  • 21
0
votes
1 answer

Display BitLy Shortened URL in Base64

I would like to display the (result) of the below code in base64. The below code shortens inputted url and display its bitly result but i want it to encode the result in base64 instead. i.e it would have shortened the inputted url to bitly in hidden…
Julius
  • 387
  • 6
  • 15
0
votes
2 answers

jQuery AJAX URL Shortener JSON request not working

I'm stuck - and it's pretty frustrating for something I thought was going to be simple :( Jquery: $.ajax({ url: "http://ur.ly/new.json?href=http://www.yahoo.com"), type: "GET", dataType: "jsonp", success: function(data){ …
Eugene
  • 1
  • 1
0
votes
0 answers

node request library return an error on api call

I'm using Bitly api to shorten links: http://dev.bitly.com/links.html#v3_shorten But then in the console log im getting an Error... var Bitly = require('bitly'); var bitly = new Bitly('key'); module.exports = function(req, res) { var term =…
ttt
  • 69
  • 2
  • 8