2017 © Pedro Peláez
 

library webservices

Web service classes with a cURL base

image

avryhof/webservices

Web service classes with a cURL base

  • Tuesday, November 25, 2014
  • by avryhof
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,399 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

WebServices

Some Basic classes for handling Web services. Starting with a cURL Class, and extending to use the REST services for some web service provicers., (*1)

So far we have - * Issuu * Meetup, (*2)

CurlClass

This is a foundation class that just provides easy ways to call curl functionality., (*3)

Issuu

documentList() - Get the Document list foldersList() - Get the Folders List getEmbed() - Get the Embed code for a document, (*4)

    $iss = new issuu($issuu_apikey, $issuu_apisecret);

    $docs = $iss->documentList(array(
        "resultOrder" => "desc",
        "documentSortBy" => "publishDate"
    ));

    foreach($docs->result as $doc) {
        ?>
        <article>
            <h3><i class="icon-book-open"></i> <a href="http://issuu.com/<?= $doc->document->username; ?>/docs/<?= $doc->document->name; ?>" target="_blank"><?= $doc->document->title; ?></a></h3>
            <section><?= date('F j, Y',strtotime($doc->document->publishDate)); ?> &mdash; <a href="http://issuu.com/<?= $doc->document->username; ?>/docs/<?= $doc->document->name; ?>" target="_blank">Read Now&hellip;</a></section>
        </article>
        <?
    }

Meetup

getOpenEvents() getEvents(), (*5)

    $meetup = new Meetup($meetup_key);

    $events = $meetup->getEvents($meetup_group, array("status" => "upcoming"));

    foreach ($events->results as $event) {
        ?>

        <article>
            <h3><a href="<?= $event->event_url; ?>" target="_blank"><?= $event->name; ?></a></h3>
            <p class="meta"><?= date('F j, Y',(($event->time / 1000) + 3600)); ?> @ <?= date('g:i a',(($event->time / 1000)+3600)); ?> | <?= $event->yes_rsvp_count; ?> going.</p>
            <p><?= linkify($event->description); ?></p>
            <p><a href="<?= $event->event_url; ?>" target="_blank">Join this event</a></p>
        </article>
        <?
    }

The Versions

25/11 2014

dev-master

9999999-dev https://github.com/avryhof/webservices

Web service classes with a cURL base

  Sources   Download

MIT

The Requires

  • php >=5.0.0

 

by Amos Vryhof

api curl rest client meetup issuu