Class SpazShortURL
SpazShortURL
Defined in: spazshorturl.js.
Constructor Attributes | Constructor Name and Description |
---|---|
SpazShortURL(service)
Constructor |
Method Attributes | Method Name and Description |
---|---|
expand(shorturl, opts)
|
|
expandURLs(urls, target)
|
|
findExpandableURLs(str)
|
|
getAPIObj(service)
|
|
getExpandedURLFromCache(shortURL)
|
|
replaceExpandableURL(str, shorturl, longurl)
|
|
saveExpandedURLToCache(shortURL, longURL)
|
|
shorten(longurl, opts)
shortens a URL by making an ajax call |
Class Detail
SpazShortURL(service)
Constructor
- Parameters:
- {string} service
- the name of a service. Preferrably one of the SPAZCORE_SHORTURL_SERVICE_* constants
Method Detail