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
3 answers

implementing passport authentication in node.js with bitly strategy

I'm trying to authenticate to bitly so I can use the link-shortener and track the users' metrics. My implementation is like this: passport.use(new BitlyStrategy({ clientID: "my client id here", clientSecret: "my secret here", …
milestyle
  • 931
  • 7
  • 14
0
votes
1 answer

Bitly API authentication for links analytics of other users

I would like to grab the number of clicks for an arbitrary bitly link - not just those links that I created. Is this possible through the bitly API? And if so, what's the process to get the correct access_token. I've tried using the generic one you…
Yiren Lu
  • 153
  • 3
  • 13
0
votes
3 answers

Is there any way to turn a bit.ly to a full url using Xcode?

I am wondering if this is actually possible,because I am running out of solutions for my problem.The bit.ly short links are just ruining my day lol. The code below is what I am trying to pull off, but this doesn't work with bit.ly links. And it is…
Moo Moo
  • 85
  • 7
0
votes
1 answer

Am I Using A Factory To Promote Polymorphism?

My first question is basically asking for a code-review. Does the code I'm about to provide use a Factory to promote Polymorphism? Its written in PHP. Here are the basic requirements: Pass a long url to a library and return a shortened url. …
simeonwillbanks
  • 1,459
  • 16
  • 18
0
votes
2 answers

Get referrer URL from bit.ly

Possible Duplicate: How to get redirecting url link with php from bit.ly I am sending traffic through a bit.ly link to my webpage. I want to keep track of what bit.ly link it was that the user came to my site with (they are pasting the URL…
Jacqueline
  • 481
  • 2
  • 11
  • 20
0
votes
1 answer

Using google url shortener in google docs

Here are some examples of shortening multiple urls in google docs. http://www.lebseodesign.com/2011/04/create-short-urls-using-apis-and-google-docs/ How to accomplish this through Goo.gl shortener?
Henry The Least
  • 619
  • 3
  • 11
  • 20
0
votes
1 answer

bit.ly dynamic link php

I am trying to use bit.ly in my website. When I do this: $short_url = json_decode(file_get_contents("http://api.bit.ly/v3/shorten?login=myLogin&apiKey=myApiKey&longUrl=".urlencode("http://example.com")."&format=json"))->data->url; It works…
user939951
  • 77
  • 5
0
votes
1 answer

Twitter's latest OAuth system conflict

I have a website..previously when I was uploading a new post in my blog..It was getting posted to twitter automatically. But since the new version of OAuth system..It no longer works...Can anybody help me to sort out what to change? My code is…
Phillip Mclauren
  • 417
  • 3
  • 17
0
votes
3 answers

What do I call in PHP to check if a string matches a pattern?

I found [this URL shortener code][1] on the web. Now I want to add something. I want to throw an error to user if they enter a link from bit.ly, TinyURL.com or tr.im. I want it to say, "Sorry, we do not shorten short URLs." I know I need to create…
chaser7016
  • 595
  • 2
  • 10
  • 28
0
votes
1 answer

append parameter in URL into value of input field javascript

I'm attempting to use javascript to modify the url on page. This URL is then being passed into the bit.ly bookmarklet to be shortened. My script will append a parameter to the URL and insert it into the URL field of the bit.ly bookmarklet. If this…
0
votes
3 answers

Bit.ly Access Token INVALID_CLIENT_ID

So I'm trying to retrieve an access_token from bit.ly to use their url shorten API call. Everytime I make the curl call I get INVALID_CLIENT_ID as a response. I quadruple checked, all my keys are fine. What could be happening? Here is the…
ShayneStatzell
  • 122
  • 1
  • 11
-1
votes
1 answer

Are there any bit.ly libraries for Android?

Are there any libraries that can do bit.ly URL shortening for Android/Java?
Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556
-1
votes
3 answers

Using python to expand a bit.ly link

How can I use Python to take a bit.ly link and return the fully expanded link? If the link inputted is not a bit.ly link, the original link should be returned.
Tomero
  • 183
  • 2
  • 10
-1
votes
1 answer

bit.ly api can't define the hash JavaScript

im trying to define some variable with the hash of my short link, using bit.ly api: $['getJSON']('http://api.bit.ly/v3/shorten?login=myusername&apiKey=myapi&longUrl=http://google.com', function (shortlink) { console['log']('short_url'); e =…
-1
votes
1 answer

How do I use the Bilty API to shorten a list of URLs?

I have an account with Bitly which personalizes my URL shortening. How can I use the API to sign in and shorten a list of URLs?
david_adler
  • 9,690
  • 6
  • 57
  • 97
1 2 3
13
14