Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

Ping.FM Wrapper Class

SpaceshipSpaceship
SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
Watch

Daniel

Danltn.comVIP Member
Impact
133
Ping.FM wrapper class

Version 0.2.1b

Download link: http://danltn.com/bin/b4g.phps
PHPClasses.org link: Browse the available classes - PHP Classes

This class allows you really easy interaction with the API features of Ping.FM. It also parses the XML return for easy access to the important data. (Accessible in $wrapper->details array)

Nothing too confusing about it, if you need more details check it on the Ping.FM API site, otherwise I can probably answer most questions.

Basic usage example:

PHP:
try
{
    $wrapper = &new PingFM_Functions;
    /** Create a new function call */
    $wrapper->dev_api = 'DEV_API';
    /** Your dev API */
    $wrapper->user_api = 'USER_API';
    /** Their user API */
    if ( $wrapper->validate() ) /** If it validates */
    {
        /** Let's retrieve the last 3 messages for fun */
        if ( $wrapper->latest(3, 'DESC') )
        {
            echo 'Latest 3 message IDs: ', implode( ', ', array_keys($wrapper->details['messages']) ), '.';
            echo '<br />', "\n";
            /** Show the array, just an example, you wouldn't really use this. */
        }
        if ( $wrapper->post('status', 'is bored') ) /** Post to it */
        {
            echo 'Your status has been updated to "is bored."';
            /** Another weird example */
        }

    }
}
catch ( exception $e )
{
    echo $e->getMessage();
}

Enjoy, and any questions - just ask.
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Portfolio sites: new ways to sort, filter and group your domains
Your public portfolio page has a few new tools for visitors. Portfolio: Newest first The sort menu now has "Newest first". It shows the...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back