• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

REST API Module for UltimatePOS

REST API Module for UltimatePOS v2.2

No permission to download

V2.0 - Fixed working at my end​

Thanks for sharing, yesterday after update from 4.8 to 5.2 in the server everitying was working fine, after update this module from 1.5 to 2.0 , i was trying to send a Json Sell as in version 1.5, but i´m getting response error 500, and the log file from /pos/storage/logs says:

live.ERROR: Cannot instantiate interface Lcobucci\JWT\Parser {"userId":13,"exception":"[object] (Error(code: 0): Cannot instantiate interface Lcobucci\\JWT\\Parser at All_root_from_Home/pos/Modules/Connector/Http/Controllers/Api/ApiController.php:79)
[stacktrace]

But i can C R U D Products and Contacts, with no problem, please helpme what i´m doing wrong?
 
  • Love
Reactions: hellboy9211
Thanks for sharing, yesterday after update from 4.8 to 5.2 in the server everitying was working fine, after update this module from 1.5 to 2.0 , i was trying to send a Json Sell as in version 1.5, but i´m getting response error 500, and the log file from /pos/storage/logs says:

live.ERROR: Cannot instantiate interface Lcobucci\JWT\Parser {"userId":13,"exception":"[object] (Error(code: 0): Cannot instantiate interface Lcobucci\\JWT\\Parser at All_root_from_Home/pos/Modules/Connector/Http/Controllers/Api/ApiController.php:79)
[stacktrace]

But i can C R U D Products and Contacts, with no problem, please helpme what i´m doing wrong?
Can you try to explain I'm brief, we're are you trying to send the product.. I mean about both post api and get api.
 
Can you try to explain I'm brief, we're are you trying to send the product.. I mean about both post api and get api.
Hi thanks for you reply, I had a .net App to manage locally contacts, products and sells; this app send all data captured, through UltimatePos 4.8 and Rest API v. 1.5, using specific Json format for "Create sell", contacts and products, methods (post).
After upgrade to UltimatePos 5.2 and Rest API 2.0, my app .net can post and get contacts and products without problem, but cannot Create any sell. When try to do this: post Json for Sell I get in .net App response status 500, looking for pos/storage/logs .log file in UltimatePos, get live.ERROR: Cannot instantiate interface Lcobucci\JWT\Parser.
Looking on GitHub says:You want to use Lcobucci\JWT\Token\Builder, not use Lcobucci\JWT\Builder. After testing gets more errors.
 
I uploaded the module fine and I tried to install it but nothing happens when I press the install button... Url #
 
Can you try to explain I'm brief, we're are you trying to send the product.. I mean about both post api and get api.
Today Take some hours but finally make ti work, the problem was a laravel update, in my case the solutiuon was edit file pos/Modules/Connector/Http/Controllers/Api/ApiController.php, int he header add:

use Lcobucci\JWT\Configuration;
use Lcobucci\JWT\Signer\Key\InMemory;
use Lcobucci\JWT\Signer\Rsa\Sha256;

change public function getClient() line:
$tokenId = (new \Lcobucci\JWT\Parser())->parse($bearerToken)->getHeader('jti');

by
$tokenId = Configuration::forSymmetricSigner(new Sha256(), InMemory::plainText('empty', 'empty'))
->parser()
->parse($bearerToken)
->claims()
->get('jti')
;

Found the solution on:
 
am getting access denied when i try to access the documentation, what might i be doing wrong?
 
am getting access denied when i try to access the documentation, what might i be doing wrong?
did you mean addon API Documentation?
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock