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 4357



