PHP code example of ipalaus / sqwiggle-php-sdk

1. Go to this page and download the library: Download ipalaus/sqwiggle-php-sdk 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/ */

    

ipalaus / sqwiggle-php-sdk example snippets


use Ipalaus\Sqwiggle\Client;
use Ipalaus\Sqwiggle\BasicAuthentication;

$auth = new BasicAuthentication('access_token');

$client = new Client($auth);

$client->getAttachment(3009);
$client->updateAttachment(3009, array('description' => 'An awesome image.'));
$client->removeAttachment(3009);
$client->getAttachments();

$client->getConversation(88732);
$client->getConversations();

$client->getInfo();
$client->getConfigurationInfo();
$client->getVersionsInfo();

$client->createInvite('[email protected]');
$client->getInvite(16430);
$client->removeInvite(16429);
$client->getInvites();

$client->createMessage(4885, 'API posted message, yay!');
$client->getMessage(673750);
$client->updateMessage(673780, 'Updated message :)');
$client->removeMessage(673780);
$client->getMessages();

$client->getOrganization(8579);
$client->updateOrganization(8579, 'ipalaus');
$client->getOrganizations();

$client->getRooms();
$client->createRoom('github');
$client->getRoom(4885);
$client->updateRoom(5802, 'Isern');
$client->removeRoom(5800);

$client->getUser(16898);
$client->updateUser(16898, array('name' => 'Isern Palaus', 'message' => 'Hi, I am Isern.'));
$client->getUsers();
 json
{
    "alaus/sqwiggle-php-sdk": "0.1.*"
    }
}