CodeIgniter 2.0 Google URL Shortener API Library |
[eluser]appleboy[/eluser]
Github: https://github.com/appleboy/CodeIgniter-...rtener-API CodeIgniter Google URL Shortener API Library Welcome to the home of the Google URL Shortener API Library, a project that will help you to shorten, expand, analytics long URL. What is the Google URL Shortener API? The Google URL Shortener at goo.gl is a service that takes long URLs and squeezes them into fewer characters to make a link that is easier to share, tweet, or email to friends. The Google URL Shortener API allows you to develop applications that interface with this service. You can use simple HTTP methods to create, inspect, and manage goo.gl short URLs from your desktop, mobile, or web application. ref : http://code.google.com/intl/zh-TW/apis/urlshortener/ Spark Install Please referrer from http://getsparks.org/packages/google-url.../HEAD/show INSTALLATION Download all file from github. Code: $ git clone git://github.com/appleboy/CodeIgniter-Google-URL-Shortener-API.git Move the files to their corresponding places within your codeigniter application directory. Code: $ copy config/google_url_api.php your_application/config/ Open config/google_url_api.php file, and configure your shorten api key Code: $config['google_api_key'] = "xxxxx"; If you're having problems, then enable debugging in your controller code: Code: $this->google_url_api->enable_debug(TRUE); COPYRIGHT AND LICENCE Copyright © 2011 Bo-Yi Wu My Blog: http://blog.wu-boy.com/2011/02/17/2542
[eluser]Gurik[/eluser]
nice lib but doesn't work with me Severity: Notice Message: Trying to get property of non-object Filename: controllers/google_url.php Line Number: 24
[eluser]appleboy[/eluser]
hi Gurik: What is your environment? I use CodeIgniter 2.0.2 and run googl api source code on FreeBSD system, it is ok. Do you run on Windows with Appserv( http://www.appservnetwork.com/ )
[eluser]Gurik[/eluser]
Hi again appleboy i'v tested on local windows first with my custom apache install (enabled curl) now I've uploaded to linux webserver here http://stumari.com/index.php/google_url i suppose the problem is with the api connection (Response code: 403) but i'v checked in api console and the key is right + requests have been registered on api console
[eluser]appleboy[/eluser]
hi Gurik: Could you provide your OS version and php extension library list? I suppose the problem that your php don't support curl with "https".
[eluser]Unknown[/eluser]
[quote author="appleboy" date="1297969984"]Github: https://github.com/appleboy/CodeIgniter-...rtener-API CodeIgniter Google URL Shortener API Library Welcome to the home of the Google URL Shortener API Library, a project that will help you to shorten, expand, analytics long URL. What is the Google URL Shortener API? The Google URL Shortener at goo.gl is a service that takes long URLs and squeezes them into fewer characters to make a link that is easier to share, tweet, or email to friends. The Google URL Shortener API allows you to develop applications that interface with this service. You can use simple HTTP methods to create, inspect, and manage goo.gl short URLs from your desktop, mobile, or web application. ref : http://code.google.com/intl/zh-TW/apis/urlshortener/ INSTALLATION Download all file from github. Code: $ git clone git://github.com/appleboy/CodeIgniter-Google-URL-Shortener-API.git Move the files to their corresponding places within your codeigniter application directory. Code: $ copy config/google_url_api.php your_application/config/ Open config/google_url_api.php file, and configure your shorten api key Code: $config['google_api_key'] = "xxxxx"; If you're having problems, then enable debugging in your controller code: Code: $this->google_url_api->enable_debug(TRUE); COPYRIGHT AND LICENCE Copyright © 2011 Bo-Yi Wu My Blog: http://blog.wu-boy.com/2011/02/17/2542[/quote] Cool library! Thanks!
[eluser]appleboy[/eluser]
[quote author="Gurik" date="1305512299"]Hi again appleboy i'v tested on local windows first with my custom apache install (enabled curl) now I've uploaded to linux webserver here http://stumari.com/index.php/google_url i suppose the problem is with the api connection (Response code: 403) but i'v checked in api console and the key is right + requests have been registered on api console[/quote] hi Gurik: I fixed this problem, please check out CodeIgniter-Google-URL-Shortener-API source code again. Thanks. |
Welcome Guest, Not a member yet? Register Sign In |