Skip to content

Can't fetch and update products and inventory. #26

Description

@Vishrootways

Hi,

I have set up your this code to localhost and after setup got following error. Can you please tell us what i did't wrong?

Fatal error: Uncaught exception 'VendAPI\Exception' with message 'Error: Recieved null result from API' in D:\xampp\htdocs\Drake\Source\VendAPI-master\VendAPI-master\src\VendAPI\VendAPI.php:320 Stack trace: #0 D:\xampp\htdocs\Drake\Source\VendAPI-master\VendAPI-master\src\VendAPI\VendAPI.php(207): VendAPI\VendAPI->_request('/api/products') #1 D:\xampp\htdocs\Drake\Source\VendAPI-master\VendAPI-master\src\VendAPI\VendAPI.php(108): VendAPI\VendAPI->apiGetProducts('') #2 D:\xampp\htdocs\Drake\Source\VendAPI-master\VendAPI-master\example.php(9): VendAPI\VendAPI->getProducts() #3 {main} thrown in D:\xampp\htdocs\Drake\Source\VendAPI-master\VendAPI-master\src\VendAPI\VendAPI.php on line 320

I want to update product inventory by API to vend but don't understand how to do. Please help.

Thanks,
Vish

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions