PHP code example of jolitagrazyte / laravel-discogs
1. Go to this page and download the library: Download jolitagrazyte/laravel-discogs 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/ */
jolitagrazyte / laravel-discogs example snippets
// Get inventory where username is username.
$inventory = Discogs::getUsersInventory('username')
$myOrders = Discogs::getMyOrders();
// Get order with id 1234
$order = Discogs::orderWithId('1234');
// Get messages of the order with id 1234
$orderMessages = Discogs::orderMessages('1234')
// create a SearchParameters object
$searchParameters = new SearchParameters();
//chain some search paramater
$searchParameters->type('label')->format('lp')->year('1996');
//do a search request with query = 'MoWax' and passing the SearchParameters object
$searchResult = Discogs::search('MoWax', $searchParameters);
// Get inventory where username is username.
$inventory = Discogs::getUsersInventory('username')