How to use your API

TODO

// Better - use dependency injections in your methods
$container = app(LaravelContainerFactory::class);
$api = new MyApi(
    new LiveEnvironment($apiKey),
    new ApiFactory(
        new RequestFactory(),
        new Client(),
        new StreamFactory(),
        $container
    )
);

// Your own response object 
$response = $api->namespaces()->paginate();
Edit this page on GitHub Updated at Tue, Mar 19, 2024