Skip to content

Error when instantiating class #14

Description

@elijahworkz

In your readme file you describe one way to instantiate the class:

require_once 'path/to/OHTAPI.php';
$oht = new OHTAPI(array(
    'public_key',
	'secret_key',
	FALSE // or TRUE for using OHT Sandbox environment
));

however your __construct method requires three parameters, not an array. So when trying to instantiate an error is thrown: Too few arguments to function com\OHT\API\OHTAPI::__construct(), 1 passed in /routes/web.php on line 66 and exactly 3 expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions