Public Methods
Constructor
__construct(string $sUsername, string $sPassword)
Example
<?phprequire('php-delicious.inc.php');$oPhpDelicious = new PhpDelicious('your-user', 'your-pass');?>
LastErrorNo
int LastErrorNo()
LastError
int LastError()
Alias for LastErrorNo(), retained for backwards compatibility.
LastErrorString
string LastErrorString()
GetLastUpdate
string GetLastUpdate()
Method returns false on failure.
GetAllTags
array GetAllTags()
Method returns false on failure.
RenameTag
bool RenameTag(string $sOld, string $sNew)
Method returns false on failure.
GetPosts
array GetPosts([string $sTag [, string $sDate [, string $sUrl]]])
Method returns false on failure.
GetRecentPosts
array GetRecentPosts([string $sTag [, int $iCount]])
Returns up to 15 posts by default. Method returns false on failure.
GetAllPosts
array GetAllPosts([string $sTag])
Method returns false on failure.
GetDates
array GetDates([string $sTag])
Method returns false on failure.
AddPost
bool AddPost(string $sUrl, string $sDecription [, string $sNotes [, array $aTags
[, string $sDate [, bool $bReplace]]]])
Method returns true on success, false on failure.
DeletePost
bool DeletePost(string $sUrl)
Method returns true on success, false on failure.
GetAllBundles
array GetAllBundles()
Method returns false on failure.
AddBundle
bool AddBundle(string $sName, array $aTags)
Method returns true on success, false on failure.
DeleteBundle
bool DeleteBundle(string $sName)
Method returns true on success, false on failure.
GetUrlDetails
array GetUrlDetails(variant $vUrls)
Takes a single URL or an array of URLs. Method returns false on failure.
GetNetwork
array GetNetwork(string $sUsername)
Method returns false on failure.
GetMyNetwork
array GetMyNetwork()
Method returns false on failure.
GetFans
array GetFans(string $sUsername)
Method returns false on failure.
GetMyFans
array GetMyFans()
Method returns false on failure.