API > eden > google > shortener.php
View Source

class Eden_Google_Shortener

Google calendar

Constants

  • GOOGLE_SHORTENER_ANALYTICS: https://www.googleapis.com/urlshortener/v1/url
  • GOOGLE_SHORTENER_GET: https://www.googleapis.com/urlshortener/v1/url/history
  • GOOGLE_SHORTENER_CREATE: https://www.googleapis.com/urlshortener/v1/url

Public Methods

public function getList()

Retrieves a list of URLs shortened by the authenticated user

Returns array

public function getAnalytics($url)

Returns full analytics of this short url

Arguments

  1. string short url

Returns array

public function createShortUrl($url)

Creates a new short URL

Arguments

  1. string long url

Returns array

public function setStartToken($startToken)

Set start token

Arguments

  1. string

Returns array

public function setProjection($projection)

Acceptable values are: 'ANALYTICS_CLICKS' - Returns only click counts. 'ANALYTICS_TOP_STRINGS' - Returns only top string counts. 'FULL' - Returns the creation timestamp and all available analytics.

Arguments

  1. string

Returns array


© 2012 Openovate Labs. All rights reserved.