How to get values using QBXML request - quickbooks

I want to fetch
Date Last Sold
MTD Sold
Last Month Sold
YTD Sold
Last Year Sold
Date Last Purchased
For Items in Quickbooks.
I am using PHP SDK to fetch Items from quickbooks and able to get them.
But I want to fetch these fields also.
Is there any QBXML request I can use to get these fields values for Items ?

As William said already, none of this information is available via direct queries.
You should poke around in the QuickBooks GUI and find out where you can get this information from - it will most likely have to be from a report.
Once you know which report you can get the information from, use the QuickBooks desktop API reference to look up the syntax for the specific report type.
For example:
<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="12.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<CustomSummaryReportQueryRq>
<CustomSummaryReportType>CustomSummary</CustomSummaryReportType>
... etc. etc. etc.
You'll get back an XML document which you can parse.
Again, the first step is you need to go find out what report you can get that info from in the GUI.

Related

Microsoft Graph API / Power Automate

I am using Graph API to extract all the incidents and advisories from Microsoft but I encounter some issues, and I will be very happy if you can help me.
I am using the GET Method using the URL
https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/issues but in the output, I can see that not all incidents are present, and I can see that there is present pagination in the output https://graph.microsoft.com/v1.0/admin/serviceAnnouncement/issues?$skip=100, can you guys help me how I should filter this to extract all the incidents from the API?
You'll need to make multiple calls until the response provides no further link for you to retrieve further records.
https://learn.microsoft.com/en-us/graph/paging
As is described in the above documentation ...
You can retrieve the next page of results by sending the URL value of the #odata.nextLink property to Microsoft Graph.
As previously stated, once you have reached the last page, you will no longer have a nextLink value to retrieve the next page.

How can I get the list list of all Invoices,Estimates and Payments for a particular Customer in Quickbooks offline?

I want to provide a Customer ListId through QBXML and get the list of all Invoices, Estimates and Payments under that particular customer. What QBXML request would give me this? Please help.
You should refer to the QuickBooks OSR for all qbXML reference:
https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html
There are also some additional samples here:
http://www.consolibyte.com/docs/index.php/Example_qbXML_Requests
If you refer to the QuickBooks OSR, you'll find some really unsurprising qbXML requests named:
InvoiceQueryRq
EstimateQueryRq
ReceivedPaymentQueryRq
An InvoiceQueryRq will give you invoices, an EstimateQueryRq will give you estimates, and so on and so forth. You may also want to check out TransactionQueryRq which queries all types of transaction at once (but be aware it will only give you summary data, and not detailed data like line items, etc. that the other more specific request types will give you).
The OSR will also show you that you can filter these queries to get back invoices, estimates, or payments for just a specific entity (e.g. a specific customer).
<EntityFilter>
<ListID >IDTYPE</ListID>
<!-- OR -->
<ListIDWithChildren >IDTYPE</ListIDWithChildren>
</EntityFilter>
You can refer to the QuickBooks OSR link above for full qbXML reference and examples (look at the XMLOps tab in the OSR).

YouTube Monthly views checker API and PHP?

My question is if there's a way to get the monthly original views. From a YouTube channel with Google Authentication system and YouTube APIs. Because i'm writing a little script that say's like when a curtain person get over a amount of, monthly views they will get sended further in to the site and get a document send through. Else they go back to the homepage, Is it possible to do this so yes how because i can't seem to find a way
You can use the YouTube Analytics API to run a report against a given video to request the number of "uniques" aggregated by month, for an arbitrary date range. The report definition would look something like
ids=channel==UC...
dimensions=month
metrics=uniques
filters=video==VIDEO_ID
start-date=2013-01-01
end-date=2013-01-01
You'd have to run that report once against every video in the channel, though, and add up the totals.
Note that the end-date is NOT the last day of the month you're looking for, it's the first day of that month again (i.e. it's a "month identifier", not a range of days).
You should note that you need to have an OAuth 2 token for the owner of the channel with the appropriate YouTube Analytics (and Data API, to get the list of videos) scopes in order to run that report; you can't just run an arbitrary Analytics report for an arbitrary video without being authorized.

How can I obtain a sampling of all tweets from a specific time period?

I want to gather samplings of all tweets from the past year. Being able to request tweets from a specific date would be great, but I'll take what I can get.
I do not want to find tweets by a specific user or containing a specific term, just a sampling of all tweets. The Twitter search API claims that a query term is optional, but if I try an empty query like
http://search.twitter.com/search.atom
as opposed to giving a search term,
http://search.twitter.com/search.atom?q=twitter
the response is
<hash>
<error>
You must enter a query.
</error>
</hash>
If the API really doesn't provide any functionality for this type of query, how can I hack around it? Are tweet ids roughly sequential by date and can I somehow use this info to grab bunches of tweets centered around an id of a tweet whose date I know?
You are referencing the obsolete documentation. If you read the current version you will find that a query is required.
You should also know that the Search API only provides results going back about two weeks. You might be able to find historical data from sites like infochimps.
Not useful for historical data, but in case someone stumbles across this question looking for a sampling of all current tweets, you want the streaming API. (This is my first foray into Twitter and I hadn't noticed it. I only saw the public timeline method in the normal API.)

Getting information from Yahoo! finance

I'm trying to get data about currency exchange from Yahoo! finance in the csv format.
E.g. there is a lot of information in this page, but when I'm downloading csv file over the url there is no such data as Change, Bid, Ask, Prev Close, Open, etc. There is "N/A" values instead them.
How can I get complete information from relevant page?
I suggest that you use Yql. This thread provides an example: Help creating a YQL Query to search companies

Resources