PHP code example of tp / guzzle-dawanda

1. Go to this page and download the library: Download tp/guzzle-dawanda library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tp / guzzle-dawanda example snippets



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
));