-
errors
void errors(function callback)
Retrieves a list of all bit.ly errors URL.
- Parameters:
callback - a function pointer to evaluate with the result.
-
expand
void expand(string short_url,
function callback)
Expands a bit.ly URL.
- Parameters:
short_url - a string representing shortened URL.
callback - a function pointer to evaluate with the result.
-
info
void info(string short_url,
string * filters,
function callback)
Retrieves info about a bit.ly URL.
- Parameters:
short_url - a string representing shortened URL.
filters - data to filter out. See bit.ly API reference.
callback - a function pointer to evaluate with the result.
-
set_apikey
void set_apikey(string s)
Sets the bit.ly API key
- Parameters:
s - the api key
-
set_format
void set_format(string s)
Sets the format that we should use to communicate with the bit.ly API.
This code only supports JSON.
- Parameters:
s - the new format.
-
set_login
void set_login(string s)
Sets the login name
- Parameters:
s - the new login name
-
set_version
void set_version(string s)
Sets the API version. This is currently 2.0.1
- Parameters:
s - the new API version
-
shorten
void shorten(string uri,
function callback)
Shortens a URL.
- Parameters:
uri - a string representing the URI to shorten.
callback - a function pointer to evaluate with the result.
-
url_stats
void url_stats(string short_url,
function callback)
Retrieves statistics about a bit.ly URL.
- Parameters:
short_url - a string representing shortened URL.
callback - a function pointer to evaluate with the result.