Hierarchy

  • PermalinkShareService

Properties

$http_: IHttpService
gmfShortenerCreateUrl_: string

Methods

  • Get a short URL of the permalink by calling the url shortener service.

    • If no shortener API url have been specified, it returns the permalink itself.

    Returns

    an object containing the permalink not shortened or the promise attached to the shortener API request

    Parameters

    • url: string

      the permalink

    Returns ShortenerAPIResponse | IHttpPromise<void>

  • Send the short permalink to the email provided

    • If email is provided, the short permalink will be sent to this email

    Returns

    the promise attached to the shortener API request

    Parameters

    • shortUrl: string

      the short permalink to send

    • email: string

      the email to which the short url must be send

    • Optional opt_message: string

      message for the email

    Returns IHttpPromise<void>

Generated using TypeDoc