Goo.gl Shorten API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api-lib
README.md
expand.php
shorten.php

README.md

googl-shorten-api

Goo.gl Shorten API

USAGE

->setApiKey('YOUR_API_KEY')
Input your google shorten API KEY

->setSSL(boolean)
Option:

  • (TRUE) enable it, if your site using HTTPS
  • (FALSE) disable it, if your site using HTTP

->setProjection(string)
Option:

  • FULL
  • ANALYTICS_CLICKS
  • ANALYTICS_TOP_STRINGS
*MORE INFO PLEASE CALL FUNCTIONS getProjection()

->shortURL()
Function to shorten the URL

->expandURL()
Function to expand the goo.gl URL

To get the Shorten API KEY, please create it on Google Developers Website