Bitly 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
helper.php
shorten.php

README.md

bitly-shorten-api

Bitly Shorten API

USAGE

  • $bitly->setAuthID('YOUR_ACCOUNT_ID') => Fill in with your Account ID
  • $bitly->setApiKey('YOUR_API_KEY') => Fill in with your API KEY

$bitly->setSLL()
Option:

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

$bitly->setDomain()
Option Short Domain:

  • (1) => bit.ly
  • (2) => j.mp
  • (3) => bitly.com

$bitly->setFormat()
Option Format:

  • json
  • xml
  • txt


To get the ACCOUNT ID and the KEY API please create a bitly account (http://bitly.com/a/your_api_key)