luno / luno-php

PHP SDK for the Luno API
MIT License
11 stars 25 forks source link

Uncaught error #27

Open donnolic opened 3 years ago

donnolic commented 3 years ago

After created a new php page

And added the following codes I got this error. uncaught error: class 'luno\request' not found in c:\wamp\www\cc\index.php on line 4

This my new page code <?php $client = new Luno\Client(); $client->setAuth("ert3543gh????", "Fttdfsj6_trru??????"); $req = new Luno\Request\GetOrderBook(); $req->setPair("XBTZAR"); try { $res = $client->getOrderBook($req); echo "Found " . count($res->getBids()) . " bid(s)"; } catch (Luno\Error $e) { echo $e->message(); } ?>

echarrod commented 3 weeks ago

Hi @donnolic, sorry no one got back to you! Did you manage to get round this issue?