Welcome Guest, Not a member yet? Register   Sign In
A Plurk API Library for CodeIgniter
#1

[eluser]appleboy[/eluser]
A Plurk API Module for CodeIgniter

Welcome to the home of the Plurk API Library, a project that will help you to get all your plurk data and implement your application with Plurk data.


Introduction of Plurk API

Plurk API provides a standard way of accessing and implementing applications on top of the Plurk platform. The API is a simple HTTP API that can be accessed from any language that supports creation of HTTP requests.

ref : http://www.plurk.com/API/1.0

Install From Spark

Please referrer http://getsparks.org/packages/codeigniter-plurk/show

Install From Github

Download all file from this site. http://github.com/appleboy/CodeIgniter-Plurk-API

Code:
$ http://github.com/appleboy/CodeIgniter-Plurk-API/archives/master
$ git://github.com/appleboy/CodeIgniter-Plurk-API.git

Copy some files into directory.

Code:
$ copy controllers/plurk_test.php your_application/controllers/
$ copy config/plurk_config.php your_application/config/
$ copy config/plurk_constant.php your_application/config/
$ copy libraries/Plurk.php your_application/libraries/

Edit config/plurk_config.php, and configure your api key, plurk username, and plurk password

Code:
$config['plurk_api_key'] = "xxxxx";
$config['plurk_username'] = "xxxxx";
$config['plurk_password'] = "xxxxx";

default path of cookie and log files are application/logs, change permission to writable.

Code:
$ chown -R www_user:www_group logs

Test your controller file: welcome.php

http://localhost/plurk_test

Reference Implementations:

* php-plurk-api: PHP implementation of this API http://code.google.com/p/php-plurk-api/

COPYRIGHT AND LICENCE

Copyright © 2009~2011 Bo-Yi Wu ( appleboy AT gmail.com )

This program is free software; you can redistribute it and/or modify it under the same terms as CodeIgniter itself.

My Blog: http://blog.wu-boy.com/2009/12/30/1920/
Git Hub: http://github.com/appleboy/CodeIgniter-Plurk-API
#2

[eluser]appleboy[/eluser]
Upgrade for CodeIgniter 2.0
#3

[eluser]reka[/eluser]
when I using Codeigniter v2.0, I got blank page
#4

[eluser]appleboy[/eluser]
[quote author="reka" date="1304590535"]when I using Codeigniter v2.0, I got blank page[/quote]

It is working with CodeIgniter 2.0.2, please check application/logs/plurk_log file which shows error message when you got blank page:

Quote:date: 2011-05-06 10:38:29
username: xxxxxxxxxxxx
message: You are not login.
data_dump: Array
(
[username] => xxxxxxxxxxxx
[password] => xxxxxxxxxxxx
[api_key] => xxxxxxxxxxxx
)

PS. please check log file and directory permission 0777.
#5

[eluser]appleboy[/eluser]
Update version to 1.0.1 for spark

http://getsparks.org/packages/codeigniter-plurk/show

or download from github

http://github.com/appleboy/CodeIgniter-Plurk-API




Theme © iAndrew 2016 - Forum software by © MyBB