0.mk shorten url service api Codeigniter library how to?

Sep 23, 2010 Author: Dr_ViRuS

For developing a php project I've needed web service for making shorter url addresses Main conditions for selection of such a service were:

*speed of service
*have api
*easy implementation of the api
*and very short domain

These conditions prefect match http://0.mk. One of the creators of the service has made class for PHP, that made my job more easyer because my project is coded in PHP MVC framework Codeigniter. The main functions were written,only I've coded a class that is compatible with Codeigniter.

Download shorten url codeigniter llibrary

Example with api key if u have registered user on service

function url_test()
{
  $shorten_config = array();
  $shorten_config['username'] = '';//username
  $shorten_config['api_key'] = ''; //api key
  $this->load->library('short_url', $shorten_config);
  $short_url = $this->short_url->get_shorten_url(
                 'http://www.pelaphptutorials.com');     
}

Example without registration

function url_test()
{
 $this->load->library('short_url');
 $short_url = $this->short_url->get_shorten_url(  
                 'http://www.pelaphptutorials.com');
}

p.s
0.mk service is not available in English


views 9890
  1. Add New Comment

gravatar
bayu
September 11,2014 at 14:24:31
Great blog! Is your theme custom made or did you download it from somewhere? A design like yours with a few simple tweeks would really make my blog shine. Please let me know where you got your theme. <a >sbobet indonesia</a> Bless you
gravatar
bayu
September 11,2014 at 14:27:50
I've been absent for a while, but now I remember why I used to love this website. Thank you, I?ll try and check back more frequently. How frequently you update your web site? <a >sbobet indonesia</a>