PHP Plurk OAuth API
PHP
Switch branches/tags
Nothing to show
Latest commit 02ad932 May 14, 2017 @clsung plurk use https now
Permalink
Failed to load latest commit information.
.gitignore - init plurkoauth, implement Plurk API 2 (OAuth) May 31, 2011
ChangeLog
OAuth.php Edited OAuth.php via GitHub Aug 3, 2011
README.MacOSX - init plurkoauth, implement Plurk API 2 (OAuth) May 31, 2011
README.markdown plurk use https now May 14, 2017
config.php.sample add CALLBACK_URL May 4, 2012
plurkAPI.php require -> require_once, as suggested in issue #2 Oct 12, 2016
plurkOAuth.php plurk use https now May 14, 2017
testOAuth.php plurk use https now May 14, 2017
testPlurk.php add currUser test May 4, 2012

README.markdown

PlurkOAuth

PHP Wrapper of Plurk OAuth API

About

PlurkOAuth is a php wrapper for Plurk API 2.0 beta You will need to Sign Up for your own CUSTOMER TOKENs.

Prerequire Packages

pecl_http, for http_build_url(), http_*.

PHPUniut if you need test it (YOU SHOULD).

Example

% cp config.php.sample config.php # and modify it

require('plurkAPI.php');

$plurk = new PlurkAPI(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
$json = $plurk->callAPI('/APP/Profile/getPublicProfile', array('user_id' => 'clsung'), true);
$json = $plurk->callAPI('/APP/Profile/getOwnProfile');
$json = $plurk->callAPI('/APP/FriendsFans/getFriendsByOffset', array ('user_id' => 'clsung'));
//$json = $plurk->callAPI('/APP/Timeline/getPlurks');
//$json = $plurk->callAPI('/APP/Timeline/plurkAdd', array ('content' => 'Post by plurkoauth which based on oauth-php', 'qualifier' => 'hates'));