Coder Social home page Coder Social logo

intuitdeveloper / sampleapp-crud-php Goto Github PK

View Code? Open in Web Editor NEW
64.0 54.0 55.0 480 KB

PHP sample app to show how to define basic CRUD operations for entities available in the QuickBooks API using OAuth 2.0 with Composer

PHP 100.00%
quickbooks sampleapp-crud-php php-sample php

sampleapp-crud-php's Issues

Invoice Crud Create won't work with CA sandbox

The same Invoice Crud Create that works with a US sandbox will not work with a CA sandbox.

What am I doing wrong?
I've even added currencyref as indicated for multicurrency documentation:

            $qbinvoice = Invoice::create([
                "Line" => [
                [
                     "Amount" => 100.00,
                     "DetailType" => "SalesItemLineDetail",
                     "SalesItemLineDetail" => [
                       "ItemRef" => [
                         "value" => 1,
                         "name" => "Services"
                       ]
                     ]
                ]
                ],
                "CustomerRef"=> [
                      "value"=> 1
                ],
                "CurrencyRef"=> [
                      "value"=> "CAD"
                ],
                "BillEmail" => [
                      "Address" => "[email protected]"
                ],
                "BillEmailCc" => [
                      "Address" => "[email protected]"
                ],
                "BillEmailBcc" => [
                      "Address" => "[email protected]"
                ]
            ]);

PSR-4 and composer

The SDK is now a composer library. Why is this demo not implementing PSR-4 autoloading?

authentication fail

/Customer/CustomerCreate.php - Uncaught QuickBooksOnline\API\Exception\ServiceException: Http Status Code [400]: Request is not made successful. Response Code:[400] with body: [Unsupported OperationOperation Could not find resource for relative : /v3/company/customer of full path: https://c50.sandbox.qbo.intuit.com/qbo50/v3/company/customer?minorversion=8 is not supported.].

Send Email subject

I'm looking for a simple way to send an email for an existing invoice.
I see that the SDK supports `$dataService->SendEmail($invoice, "[email protected]");

Is there a way to set a subject and body content?

Request is not made successful

Request is not made successful. Response Code:[400] with body: [Invalid NumberInvalid Number : ].
I am trying to update

$item = $dataService->FindbyId('item', 26);
        $theResourceObj = Item::update($item , [
            "QtyOnHand" => 101
        ]);

Any solution!?

Use of undefined constant OAUTH_SIG_METHOD_HMACSHA1

I got this issue when I try to fetch contact list.
check

Use of undefined constant OAUTH_SIG_METHOD_HMACSHA1 - assumed 'OAUTH_SIG_METHOD_HMACSHA1' in E:\xampp\htdocs\demo\quick_book\v3-php-sdk-2.4.1\Security\OAuthRequestValidator.php on line 80

Any chance to replicate this for Python Flask

I'm having a hard time replicating the examples using Python Flask.

My main objectives are:

  1. Create a Sales Receipt
  2. Create Invoice
  3. Receive payment (applied to specific invoice)

Not very much documentation and samples for developing with Python...

Thanks a lot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.