ricbra / php-discogs-api

PHP 5.4 Implementation of the Discogs API
MIT License
152 stars 96 forks source link

How to create $services object? #50

Closed deepak-netwin closed 6 years ago

deepak-netwin commented 6 years ago

Hi there,

Thanks for this module! Can you please let me know how can I create $services object to access method:

$release = $service->getRelease([
    'id' => 1
]);
ricbra commented 6 years ago

Hi @deepak-netwin

In the documentation sometimes $client is used as name and sometimes $service. But they are both the same. So perhaps this makes more sense to you:

$release = $client->getRelease([
    'id' => 1
]);
deepak-netwin commented 6 years ago

@ricbra Thanks for your reply. I tried with the same and able to get the release details.

ricbra commented 6 years ago

Nice