How do I invoke a tesseract function from its API? - tesseract

I wanted to retrieve the font details from tesseract.I'm trying to use the Tess API to retrieve those details.But I'm not able to get the result due to some error in linkage of header files. The errors are listed in the webpage below:
http://pastebin.com/dv2QMT22

Related

How to get an asset all details in AEM with API request?

I am using AEM API in my automation. We published a file from workfront to AEM. That file have multiple information:
1. Basic
2. Test1
3. test2
4. etc
When I hit the api:
/api/assets/..../abc.pdf.json
I am getting very less information under the properties and metadata section. (In short, it does not have Test1, Test2 and other tab information)
Is there any way to fetch all these from aem API's? It will reduce my overhead to validate these details from UI Automation.
First of look checkout the metadata nodes of file for the desired data to be present. I would rather prefer writing a custom servlet in AEM which takes in path parameter as an asset path and gives back the response back in desired format.
I figured it out.
The following API returns all the JCR content in API response:
<baseURL>/content/dam/path to that file.-1.json

How to get 'Layout' for a work item type from DevOps API?

I need to fetch layout info for work items.
I'm familiar with the following API
https://learn.microsoft.com/en-us/rest/api/azure/devops/processes/layout/get?view=azure-devops-rest-5.1 but I always get the same error back from it, reading
"VS403115:You cannot modify form layout information for work item types ... in process ... as these work item types are locked."
While I understand what the error means, I'm just trying to READ the layout data, rather than modify it.
I did double check that the request is a GET, and I tried different versions of the API (4.x, 5.x)
You get this error is because you are trying to get layout for a default process template. This API is using to get the full work item form layout for a process using inherited customization.
If you try to get layout for a inherited process template, you'll get a successful response.
The following link explains this API:
https://learn.microsoft.com/en-us/rest/api/azure/devops/processes/layout?view=azure-devops-rest-5.0

VSTS API - Get test category information for test run

I have been looking to get hold of test results programatically, for the tests that are run during builds and releases. I am doing it via the VSTS API here.
https://www.visualstudio.com/en-us/docs/integrate/api/test/results
The test category information, declared via [TestCategory] attribute, does not appear in this results returned by this API.
I am wondering if there is a way to get hold of test results along with category information?
The test category information is available within the downloaded test results file using the UI from within the test run details.
Is there an API endpoint that return path to the test results file (the one that can be downloaded via the UI)?
Any pointers will be greatly appreciated.
Thanks
To get TestCategory from test file (such as .trx), you use use the REST API to download a test run attachment instead of using the REST API to get test result(s) from a test run.
You can get the test run attachment id firstly, and then download the attachment:
To get the attachment id, use the REST API:
GET https://account.visualstudio.com/DefaultCollection/project/_apis/test/runs/runId/attachments?api-version=3.0-preview
And you can get the attachment id by the id parameter.
To download the attachment, use the REST API:
GET https://account.visualstudio.com/DefaultCollection/project/_apis/test/runs/runId/attachments/attachmentId?api-version=3.0-preview
To get the TestCategory, you can find in the response part:
<TestCategory>
<TestCategoryItem TestCategory="name" />
</TestCategory>

Get All Sections in a Notebook

I can get all the sections in a Notebook using the OneNote API using the following
https://www.onenote.com/api/v1.0/notebooks/{notebookId}/sections
But cannot find a reference to the syntax when using the MSGraph API.
I've a number of combinations, but all give Bad Request msgs.
I'm using the Graph Explorer with MS Graph.
You can call the following:
https://graph.microsoft.com/v1.0/me/onenote/notebooks/{id}/sections

Getting Logos from Sites with SiteInfo

We are attempting to get site logos from the Yodlee API. From the SiteInfo data model (using the SOAP API), there are the following methods that appear to retrieve site logos
siteInfo.getDefaultSiteLogo()
siteInfo.getLocalizedSiteLogos()
getDefaultFavIcon()
The issue is that these methods for the sites we are using (all sites with the AU geography) are returning null.
I am pretty sure this is possible to do, since Yodlee's own fastlink does show logos for sites as you are adding them.
Here are the method call signatures
I am using the soap api through java (using axis 1.4, just like in the sample code) and the API signatures are as follows
SiteAccountManagementService has the method getAllSiteAccounts which has the following signature
com.yodlee.soap.collections.core.accountmanagement.ArrayOfSiteAccountInfo getAllSiteAccounts(com.yodlee.soap.common.UserContext userContext).
Then there is also getCctx, which has the following signature
public com.yodlee.soap.common.CobrandContext getCctx()
None of these methods have a request specifier parameter of any sought
I don't think icons will be returned by default. I believe you need to specify this in your request specifier to get icons/image.
getAllSiteAccounts API is to get the details for the Accounts aggregated by a consumer,
while the information you are looking for(the Logos) are site related not consumer related.
You should use getSiteInfo(under SiteTraversal) to get this specific detail and remember to pass value of siteFilter.reqSpecifier as 128.