Git Product home page Git Product logo

saasu's People

Contributors

david-lin-au avatar dlin-me avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

saasu's Issues

Update Purchase Order Number

Hi David,

Can you give me some ideas -

here is the code -

    $invoicePayment = new Dlin\Saasu\Entity\Invoice();
    $invoicePayment->uid = $invoice->uid;
    //$invoicePayment->transactionType = 'S';
    //$invoicePayment->layout = 'S';
    $api->loadEntity($invoicePayment);

    $invoicePayment->purchaseOrderNumber = '12342';
    print '<pre>';
    var_dump($invoicePayment);
    print '</pre>';
    $api->saveEntity($invoicePayment);

if returns an error,,

Fatal error: Uncaught exception 'Exception' with message 'TooFewTransactionItemsException - Invoice must contain at least one line item.' in /Library/WebServer/Documents/grandcucinaopsworks/saasu-master/src/Dlin/Saasu/SaasuAPI.php:50 Stack trace: #0 /Library/WebServer/Documents/grandcucinaopsworks/saasu-master/src/Dlin/Saasu/SaasuAPI.php(81): Dlin\Saasu\SaasuAPI->checkException(Object(Guzzle\Http\Message\Response)) #1 /Library/WebServer/Documents/grandcucinaopsworks/saasu-master/tests/test4.php(30): Dlin\Saasu\SaasuAPI->saveEntity(Object(Dlin\Saasu\Entity\Invoice)) #2 {main} thrown in /Library/WebServer/Documents/grandcucinaopsworks/saasu-master/src/Dlin/Saasu/SaasuAPI.php on line 50

how can I fix it?

Thanks for your time!

Keith

Autoload doesn't seem to work?

I installed the package, and added the require:

require 'vendor/autoload.php';

But i only get this error:
PHP Fatal error: Class 'SaasuAPI' not found.

I'm new to composer, so how do i debug this?

Lists and reports?

Hello again,

I noticed now that lists and reports are not in this API Client.

I could spend the time figuring out how to add this to you project, but that would probably take hours and i don't want to mess up anything.

I'm referring to this in the API Documentation: http://help.saasu.com/api/#toc-http-get

I specifically needed to get FullInventoryItemList.

Is there any way to get all invoices for a particular FileUId and Accesskey?

When i am using this URL to get an Invoice for a particular UId,
URL:
https://secure.saasu.com/webservices/rest/r1/Invoice?wsaccesskey={wsaccesskey}&amp;FileUid={FileUid}&amp;uid={uid}

Is it possible if I can get all the InvoiceUids for a combination of Wsaccesskey and FileUid ?
If you could just tell me what parameter to use while sending the GET , its a really helpful Saasu PHP Client

Really Appreciate any help, thanks in advance!

Loading ComboItem doesn't include BuildItems data

Hello,

Nice work with this library, very handy!

I just can't seem to get the BuildItems data (list of items which a Combo Item is built from) when I query a Combo Item like this:

$entity = new Entity\ComboItem(); $entity->uid = $itemUid; $api->loadEntity($entity);

The items property for $entity has an array of empty SimpleXMLElement objects - I'm not sure if this is related though.

Cheers,
Ryan

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.