2017 © Pedro Peláez
 

library guzzle-dawanda

A Guzzle implementation of the DaWanda API

image

tp/guzzle-dawanda

A Guzzle implementation of the DaWanda API

  • Saturday, December 15, 2012
  • by tPl0ch
  • Repository
  • 0 Watchers
  • 0 Stars
  • 9 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Guzzle DaWanda API v1

Build Status, (*1)

A basic Guzzle implementation of the DaWanda API v1. This is only implementing the Basic API, I am currently working on extending it with more features and writing the OAuth Provider., (*2)

Installation

Composer

Require the following package in your composer.json, (*3)

require: {
    ...
    "tp/guzzle-dawanda": "dev-master",
    ...
}

Get an API key over at DaWanda

Fetch it here: http://www.dawanda.com/apps, (*4)

Usage

There are 3 available languages supported by DaWanda at the moment, 'de', 'en' and 'fr'., (*5)

<?php
use Guzzle\DaWanda\DaWandaClient;

// Get the client using the factory
$client = DaWandaClient::factory(array(
    'language' => 'en', // default
    'api_key'  => '******', // Your API key here
    'format'   => 'json' // or 'xml'
));

// Use the client
$result = $client->SearchUsers(array(
    'keyword'  => 'Liebe-und-Kraft'
));

// Pagination
$result = $client->SearchUsers(array(
    'keyword'  => 'Liebe-und-Kraft',
    'per_page' => 30, // default is 10
    'page'     => 3   // Third page, default is 1
));

See https://github.com/tPl0ch/guzzle-dawanda/blob/master/src/DaWanda/DaWanda.json for all supported methods, (*6)

TODO

  • Add ResourceIterator for easily abstracting away pagination
  • Add Models so reusing the result objects is more fun
  • Increase test coverage

Further Reading

The documentation over at guzzle is pretty informative, too, so check it out: http://guzzlephp.org/docs.html, (*7)

The Versions

15/12 2012

dev-master

9999999-dev https://github.com/tPl0ch/guzzle-dawanda

A Guzzle implementation of the DaWanda API

  Sources   Download

MIT

The Requires

 

The Development Requires

09/12 2012

v0.1.0-beta

0.1.0.0-beta https://github.com/tPl0ch/guzzle-dawanda

A Guzzle implementation of the DaWanda API

  Sources   Download

MIT

The Requires

 

The Development Requires

07/12 2012

v0.1.0-alpha

0.1.0.0-alpha https://github.com/tPl0ch/guzzle-dawanda

A Guzzle implementation of the DaWanda API

  Sources   Download

MIT

The Requires

 

The Development Requires