Can you query Mendeley Desktop with an API? - mendeley

I would like a script to query my Mendeley Desktop for a list of articles. Is this possible (in any scripting language, including shell)? I know there is an API I could use over http, but I need a local query for when I am not connected to the internet.

No, there's no API for that, I'm afraid.
You'd have to pick apart the local database that Mendeley Desktop uses. But this would be precarious, and would break if Desktop changed its internal database format.
A better option might be for you to run a query against the REST API periodically when you're online (perhaps even automatically), and cache the results so that you have them available when you're offline.

In the local folder there is something called Mendeley Desktop API, which you can see used in the OpenOffice plugin https://github.com/Mendeley/openoffice-plugin/blob/master/src/MendeleyDesktopAPI.py . Open the Mendeley client and open http://localhost:50002/ . I have no idea if using it is supported and how stable the API is, I am just looking around myself.

Related

Is that a way to get write permission to a single folder on OneDrive via Microsoft Graph API?

I need to upload files to a client's shared folder on OneDrive, however, there's no way I can get them to allow Files.WriteAll for my application (I'm using application permissions, not delegation) -- I've asked them. Is there another way to do that?
I have looked into multiple SO questions about this and on Microsoft's documentation, and I believe it is not possible, but I would like to know from people with more experience using Microsoft's service if it is indeed true.

How can I automate GET calls to Microsoft Graph Explorer from a system and have the output stored via a script?

I want to download some data from Microsoft Planner and I have used the Microsoft Graph Explorer API online and have my three GET requests ready.
Let's say one of the GET requests is:
https://graph.microsoft.com/v1.0/planner/plans/E2d-w1xIyUOc6nZPfMerEmQAB266/buckets
This returns a JSON file in the 'Response Preview' pane in Microsoft Graph Explorer online.
I want to somehow initiate this GET request from a server using a script (.bat/.ps/.sh/.bash) and get this output JSON file stored on the same server.
If anyone can point me in the direction on how to achieve this, I'd be really glad?
since you want a background task to run you are best registering an application without a user then once you've authenticated you can run that in a script to run say via a cron job.
If you use Laravel I've written a wrapper for graph that supports both users and tenants https://github.com/daveismyname/laravel-microsoft-graph.
Otherwise, study https://learn.microsoft.com/en-us/graph/auth-v2-service

Access local web files via Microsoft Edge extension

Recently we migrated a Chrome extension to Microsoft Edge. We face only one problem. Extension should interact with webpages, that works fine with online webpages but not with local files.
Chrome offers for this situation permission called <all_urls>. We tried to use <any url> permission that we found on Microsoft support page, but without any result. We would like to interact with any webpage, not specific one.
Does Edge support this functionality - and if it does, how can we achieve it?
If not, is it planned in near future?
In Chrome, local file access can be achieved by checking Allow access to file URLs in chrome://extensions, however this feature is not supported in Microsoft Edge at now.
As for feature plan, you may want to provide your feedback in their Feedback site.

REST API for Quick Books desktop

Is there any REST API associated with Quick books Desktop ?
I am aware of Quickbooks SDK and one can build its requests via QBFC or QBXML.
However,I have set of hardcoded request xmls ,I was wondering is it possible to test these XMLs by sending directly to Quickbooks Desktop via tool like SOAPUI.
Is there any REST API associated with Quick books Desktop
Yes, but it's deprecated. You can't build new apps for it -- only existing apps already using it are allowed to use it.
However,I have set of hardcoded request xmls ,I was wondering is it possible to test these XMLs by sending directly to Quickbooks Desktop via tool like SOAPUI.
You could easily write your own little SOAP server that sits and listens for requests and runs them against QuickBooks if you wanted to. Or use the SDK Test+ tool included with the SDK and feed them to QuickBooks directly from files.

How to access start addresses of a Content Source programatically?

How can we get a list of start addresses added in a Sharepoint content source programatically ? The code which need to achieve this will be running on different server than where sharepoint is installed so i am looking for a solution where we can query sharepoint database to get this list.
Never query the sharepoint database directly. Even a simple select statement an cause a read lock, potentially creating havoc in your farm.
By using the database directly you are NO LONGER SUPPORTED, meaning that if it does go belly up and you call microsoft for support, they'll send someone from consulting ($$$$) or ask you to go back to the last known good configuration (i.e. a backup of your sharepoint databases from before the point you started accessing the database directly...)
Create a web service that uses the sharepoint object model to get this list, then deploy it to the sharepoint machine, then have your external app use that service.

Resources