Download the PHP package jolitagrazyte/discogs-api without Composer
On this page you can find all versions of the php package jolitagrazyte/discogs-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jolitagrazyte/discogs-api
More information about jolitagrazyte/discogs-api
Files in jolitagrazyte/discogs-api
Package discogs-api
Short Description A simple Discogs Api wrapper using Guzzle7.
License MIT
Homepage https://github.com/jolitagrazyte/discogs-api-wrapper
Informations about the package discogs-api
A simple php Discogs Api.
This package makes it easy to communicate with discogs-api. It uses Guzzle 7 and is very simple to install and to use.
You can use it with any PHP framework or just simply in your naked PHP application.
However, if you want to use it in Laravel framework, I'd suggest to also install jolitagrazyte/laravel-discogs package, which provides a facade for even an easier way to play with it.
Installation
You can install the package via composer:
Usage
Endpoints with no authentication required
For the endpoints, where token is not required, first argument can be easily left empty.
Endpoints where authentication is required
For the endpoints, where token is required, you must add your discogs-token.
You can obtain it at https://www.discogs.com/settings/developers.
Orders
To get your orders, you can use getMyOrders()-method.
Orders list comes paginated with a default - 50 orders per page, but it can be changed.
If you need, you can add some optional parameters: page
, perPage
(with a max of 100), order status as status
, sort
and sortOrder
.
If you need more information about the parameters you can read about it at https://www.discogs.com/developers.
For getting one specific order by id:
It is also possible to retrieve the messages of an order:
For changing the status of the order or adding the shipping to the order.
Search
If you want to add some extra search parameters you can do it by first creating a SearchParameters object and then chaining as many options as you want.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Jolita Grazyte
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of discogs-api with dependencies
illuminate/support Version ^9.28|^10.0|^11.0
guzzlehttp/guzzle Version ^7.8
ext-json Version *