Install Digg Toolkit, Solving Problems and Digg API Feature

Posted by Bimo Hery Prabowo On Selasa, 22 Mei 2012 0 comments
To build an application with Digg, you need a Digg Toolkit. Digg has released a toolkit, you can use this toolkit to build applications. Unfortunately, for the novice web developer, homemade Digg Digg toolkit is not familiar, since it was released in PEAR package form. You need to install some other package before using the toolkit Digg. For example, I had to install the package HTTP_Oaut2, only then Service_Digg2.


How to install Service_Digg2 through Cpanel
But believe me, I install these packages are very easy, you simply go into cpanel and select the menu configuration of PHP pear. Initially I had difficulty, but finally installed. noteworthy is the system that PHP path. sometimes arise because digg2.php not found error.
For example, appears an error like this:
Warning: require_once (Services/Digg2.php) [function.require-once]: failed to open stream: No such file or directory

It's just not appropriate path. The solution
ini_set ('include_path', '/ home / * yourhostaccount * / php');
require_once 'Services/Digg2.php';
Easy right? * yourhostaccount * residence is replaced with Cpanel account name.

Digg Toolkit is running normally
If the error is already completed, you can do anything with Digg, Digg Railway version 2.0 possess the following features:

comment.bury
comment.digg
comment.getInfo
comment.getRecent
comment.getReplies
comment.post

digg.getAll
digg.hasDugg
newsroom
newsroom.follow
newsroom.getInfo
newsroom.getNews
newsroom.getTopNewsrooms
newsroom.unfollow

access_token
request_token

search.search

story.digg
story.getComments
story.getDiggs
story.getInfo
story.getNewswireNews
story.getTopNews
story.getUpcomingNews
story.hide
story.undigg
story.unhide


topic.getAll
topic.getInfo

user.follow
user.getActivity
user.getComments
user.getFollowers
user.getFollowing
user.getInfo
user.getMyNews
user.getSavedStories
user.removeStory
user.saveStory
user.unfollow