Module: Use0MK

Defined in:
lib/use0mk.rb,
lib/use0mk.rb

Defined Under Namespace

Classes: EmptyLinkError, Error, Interface, InvalidAPICall, InvalidAPIKey, InvalidCredentials, InvalidFormatError, InvalidLinkError, InvalidShortNameError, RedirectError, ShortenedURI

Constant Summary collapse

SHORTEN_URI =
"http://api.0.mk/v2/skrati"
PREVIEW_URI =
"http://api.0.mk/v2/pregled"
ORIGINS =
[:shorten, :preview]
APIERRORS =
[
  Use0MK::EmptyLinkError,
  Use0MK::InvalidLinkError,
  Use0MK::InvalidFormatError,
  Use0MK::InvalidShortNameError,
  Use0MK::InvalidAPIKey,
  Use0MK::InvalidCredentials,
  Use0MK::InvalidAPICall
]