Skip to content

Instantly share code, notes, and snippets.

View ThomasRueckert's full-sized avatar
🐶
wuff

rutho ThomasRueckert

🐶
wuff
View GitHub Profile
@ThomasRueckert
ThomasRueckert / unifysell-api-prepare-call.php
Created October 30, 2018 13:22
authenticate and build config before making a call to unifysell api
<?php
// Authenticate
$keycloakClient = new \Unifysell\OAuth2\Client\Keycloak();
$accessToken = $keycloakClient->createAccessToken();
// Build config
$config = Unifysell\SDK\Configuration::getDefaultConfiguration()->setApiKey(
@ThomasRueckert
ThomasRueckert / unifysell-api-install.sh
Last active October 31, 2018 16:46
install composer and then add sdk to requirements
#!/bin/bash
curl -sS https://getcomposer.org/installer | php --
php composer.phar require unifysell/unifysell-sdk-php