require 'vendor/autoload.php';
$skyhubUser = 'seu-usuario@domio.com.br';
$skyhubToken = 'seu-token-aqui';
$debugMode = true; // setando o debug do guzzle http como true
$skyhub = new Marketplacehub\Skyhub\ApiClient($skyhubUser, $skyhubToken, $debugMode);
$response = $skyhub->queue->get(); // isso retorna uma instancia da Response do package guzzle
// convertendo a response em um stdClass,
// caso retorne null, quer dizer que não existe nenhum pedido na fila
$order = json_decode($response->getBody());
Created
January 24, 2017 01:20
-
-
Save julianobailao/66f3447cfbf2fc7e83e6301f009c3deb to your computer and use it in GitHub Desktop.
Order Queue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment