Skip to content

Latest commit

 

History

History
43 lines (41 loc) · 1004 Bytes

File metadata and controls

43 lines (41 loc) · 1004 Bytes

Initialization

Configuration array

    [
        'auth' => [
            'type' => '', // user, app, oauth
            'app' => [
                'consumerKey' => '',
                'consumerSecret' => '',
            ],
            'oauth' => [
                'flow' => [
                    'callback' => '',
                    'oauthToken' => '',
                    'oauthTokenSecret' => '',
                    'oauthVerifier' => '',
                ],
                'access' => [
                    'oauthToken' => '',
                    'oauthTokenSecret' => '',
                ],
            ],
            'user' => [
                'personalAccessToken' => '',
            ],
        ],
        'settings' => [
            'debug' => true,
            'rateLimiting' => true,
            'userAgent' => '',
        ],
        'username' =>'',
    ],

Library

$this->api = \WebServCo\DiscogsApi\ApiHelper::init(
    <configurationArray>,
    <logPath>
);