QuickBooks php XML Responce parsing Error - php

I am using QuickBooks v3 php sdk 2.1.0.
Running a query (SELECT * FROM SalesReceipts) gives the XML Response but getting NULL value, tried to applying error message and got this error
Class com\intuit\schema\finance\v3\IPPid does not exist.
Any Solutions ???

At Last Found the Solution....
Steps:
Download the fresh sdk
Replace All the files in sdk/Data Folder
Test Your code now!
If error still persist, replace all the files excepts sdk.config and this will fix your issues.

Related

HTTP 500 errors with the php Google API client

I want to get the data from google sheet in json format. I have implemented the code but it giving error is
page currently unable to handle this request.HTTP ERROR 500
I am using this link "https://gist.github.com/karlkranich/de225928665dc6b83667". The function checkServiceAccountCredentialsFile() given in this file was not defined anywhere in base.php file. So i coppy the base.php file from "github google client php".
When i echo this function in my php file from where i am trying to get the data is not working.
please suggest anything to resolve this issue.

Getting 411 error bad request in Evernote

We have three environments, Dev, QA and Prod.
We have a stable PHP running that connects with evernote , get token and fetch content.
we updated our QA environment to PHP 7.0 and now when via evernote when we try to fetch Token it returns
Invalid auth\/bad request (got a 411, expected HTTP\/1.1 20X or a redirect)
Here is the code
$oauth = new \OAuth($this->consumerKey, $this->consumerSecret);
return $oauth->getRequestToken($this->getEndpoint('oauth'), $callbackUrl);
I have checked that consumerKey etc and everything is correct.
I am not sure what error could be here since 411 is normally when you need to send content length, but in Evernote API they dont mention anything like this
Is this due to PHP 7.0 ?
Any help will be appreciated
Thanks
Yes, you probably need to send the content length.
Does Evernote change the API validation for the Content-Length?
I see there is another workaround proposed on Github.

Jasper Report -- Resource not found

I am developing a jasper report in PHP
I have tried embedded jasper library 0.9d -- PhpJasperLibrary-master
After fixing part of the code in the library,
It works normally but it cannot display table format which is very important for me to develop Jasper report so I give up in this method and build up an jasper server.
I have installed the PHP Client(v2.0) by composer and using the sample code in the following link
http://community.jaspersoft.com/wiki/php-client-sample-code
http://community.jaspersoft.com/project/php-client/releases
I am not sure why there is a lot of bugs in the sample code like getjob(s) function and passing variable to class client.
Anyway, I fixed it and the server info can be called.
In the last stage, I cannot run the report and the error message shown that the resource of my report not found.
Jaspersoft\Exception\RESTRequestException
Resource /20150604 not found.
I could like you to help me and I hope I can release a prefect version after all parts done.Thanks
And the below is my report information.
I have put my report under the folder /reports
and it can run in the jasper server
I have checked the URL that calling the report is like below
localhost:9090/jasperserver/rest_v2/reports/20150604.html
I have concern about the URL but I cant find any reference to it.
So please support me to fix the problem.
Thanks
additional: here is the code I call the report
$report = $c->reportService()->runReport('/20150604', 'html');
Hmm the rest endpoint to "run" a report is js/rest_v2/?path to report?.html
Unless your report is in the root of your organization, then you need a path.
Check out this (line 20):
https://github.com/jasonhuber/Jaspersoft_InputControlsFromCSV/blob/master/index.html#L20
and check in the web services guide page 71...

How to publish a message using Rabbit on windows

I have been trying to publish a message using the Yiiamq extension but I am not able to do so. I have installed the DLL with success but I am getting the following error code when I try to publish a message:
AMQPExchange::__construct() expects exactly 1 parameter, 2 given
Here is the code I am using:
Yii::app()->amqp->exchange('amq.direct')->publish('some message','Frontier1');
Has anybody used this extension for Yii before?or Id s there another library that I could use.

ISSUU: Upload not working - Response Code: 999 Internal server error

I'm trying to upload files via the API (issuu.document.upload). It worked in the past. But on new files I receive always the following response error:
{"rsp":{"_content":{"error":{"code":"999","message":"a66125aeaff42e3a893a985fdc9b659587880484 - Internal server error"}},"stat":"fail"}}
The document also does not show up in "My Publications" (http://issuu.com/home/publications)
There is no API documentation about this error code...
Problem solved (the ISSUU developers fixed it). From the ISSUU support team: "... It seems like there was some problems with our API servers, ..."

Categories