dlin-me / saasu Goto Github PK
View Code? Open in Web Editor NEWSaasu API PHP Library
License: MIT License
Saasu API PHP Library
License: MIT License
Hello,
Thanks for sharing this project!
You wrote:
{
require: {
"dlin/saasu": "dev-master"
}
}
Should be:
{
"require": {
"dlin/saasu": "dev-master"
}
}
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
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?
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.
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}&FileUid={FileUid}&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!
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.