Code Monkey home page Code Monkey logo

cibitly's Introduction

Simple Bit.ly API Interface for CodeIgniter -> Still trying to figure out get tags sorry for any errors.

NOTES

This is a very small library providing only the functionality I needed at the time. I might expand on this later or atleast show you how I use it.

Check Here for updates and other various CodeIgniter Things.

CONFIGURING

You'll need a valid Bit.ly account to use this library.

If you already have an Bit.ly account, you can find your apiKey at: http://bitly.com/a/your_api_key

Setup your Login and API Key in the config file.

Usage Instructions Shorta

<?php
	/**
	 * Simple short method of using this.
	 *
	 */
	public function index()
	{
		// Load the rest client spark
		$this->load->spark('ci-bitly/0.0.3');


		$config = array('login'  => 'loginname','apikey' => 'yourapi');

		//This works as a library also if your not into the sparks thing.
		//$this->load->library('cibitly');

		// Run some setup
		$this->cibitly->initialize( $config );

		$url = 'http://blog.s-vizion.com/';

		$short = $this->cibitly->get_short_url ( $url );
		$long  = $this->cibitly->get_long_url ( $short );

		echo "Short URL : {$short} <br /> Long URL : ' , $long;

	}

`

cibitly's People

Contributors

og-shawn-crigger avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.