Custom file properties in Dropbox Core API? - java

In the Google Drive API there is something called custom file properties - https://developers.google.com/drive/web/properties - and they can be used to add your own as key/value pairs:
{
'key': 'additionalID',
'value': '8e8aceg2af2ge72e78',
'visibility': 'PRIVATE'
}
I would like to do the same in a desktop Java application with the Dropbox Core API, but I cannot find anything. Am I missing something or is this simply not available in Dropbox Core API?
If there is something, please provide an example of how it would be used in Java. Thanks!

Looks like Dropbox has begun to implement this feature.
In API v2 there are such endpoints:
properties/template/add
properties/template/get
properties/add
properties/remove
properties/update
and so on.
Details looks at API Documentation.
But all of them are marked as:
PREVIEW - may change or disappear without notice
Good luck with it.

The Dropbox API now offers the (now non-preview) ability to add arbitrary key/value data to Dropbox files via "file properties":
https://www.dropbox.com/developers/documentation/http/documentation#file_properties
If you're using an official Dropbox SDK, there will also be corresponding methods for these endpoints.

Related

Integrating 3rd party API with jhipster based webapp

I am trying to build a simple web app using jHipster. Currently I am trying to build a simple stock entity that will enable a user to input the stock name and the entity should generate a listing of that stock with open, high, low and close data. I am unable to figure out how to integrate the web app with a third party API that supplies the data. I could not find any documentation regarding this issue online. Thank you.
I found this tutorial on implementing API's that might help.
What you need to do is create an HTTP client that can access your API.
I'm not too familiar with jHipster but finding the proper library to import seems like a good first step. Good luck.
Source:
https://zapier.com/learn/apis/chapter-8-implementation/
If you aren't sure which language to choose, a great way to narrow down the selection can be to find an API you want to implement and see if the company provides a client library. A library is code that the API owner publishes that already implements the client side of their API. Sometimes the library will be individually available for download or it will be bundled in an SDK (Software Development Kit). Using a library saves you time because instead of reading the API documentation and forming raw HTTP requests, you can simply copy and paste a few lines of code and already have a working client.

Implementing partial response in cloud endpoints v2 - Java

I created a simple API in cloud endpoints v2 using Java. I see there is one parameter with the name of fields in the API Explorer for partial response. But
this is not working for me.
I saw YouTube API which is using this. How can I implement it in my own API?
I'm not able to find any documentation.
Unfortunately, this is explicitly called out as an excluded feature of Endpoints 2.0 Java right now.
Here's an excerpt from that page for posterity:
Currently excluded features and tools
...
fields partial responses
However, the page does suggest submitting a feature request using the GitHub issue tracker if it is something that you would like to see in Endpoints.

Download Google Tag Manager container binary file with Google's API Client Library for Java

I use the TagManager API to retrieve/manipulate data in my Google Tag Manager configuration. The only problem I have now is that I can't download the binary file generated for each container version using that api (it is used by Android SDK). To be clear, I'm talking about the file which can be downloaded via:
https://tagmanager.google.com/api/accounts/[accountId]/containers/[container_id]/versions/[version_id]/download
The base URL of the TagManager API is different to the one above (https://www.googleapis.com/tagmanager/v1/), so the GoogleCredential I've generated using my service account doesn't work for this download, as it is out of scope (TagManagerScopes to be specific).
I tried to find something in Google Developers Console to allow arbitrary url's like the one for the binary file, but I couldn't find anything. I might be approaching the OAuth part from a wrong angle altogether, this API is still very new to me.
Is it even possible to download this file programmatically? If yes, could you please explain how to achieve this?

How to setup Blogger API on Android

I want to make an app which will use Google's Blogger API V3. But I've got stuck at the setup part. I've made an API key on developer console. I've read trough several tutorials and samples and everywhere they use this object
Blogger
For example here:
Blogger example
I downloaded the Java client library, copied to my application's libs folder, added to the build path, but still can't use this Blogger object.
Java client library
Where can I get the library that contains the Blogger object?
It depends what do you want to do with the Blogger API. If you want to access non-public data you should use Oauth2.0 to authenticate so for that I suggest reading this
https://developers.google.com/android/guides/http-auth#retrieve_the_account_name
Then you will probably want to send request to your API (POST,GET, DELETE or others) in order to perform actions such as post on your blog, retrieve comments or posts from your blog.
I have found this link very usefull
http://arnab.ch/blog/2013/08/asynchronous-http-requests-in-android-using-volley/

how to add facility like google docs has in my project

I want to create maven project like compare to office docs with it syntax. So I think to download Google docs API.
But I didn't find any link to download it. so any API that do this or download link and sample for achieve it using Google docs or other.
You can't download Google docs the same way you download an Office file. Even the Google docs inside of the Google Drive are actually just links.
What you have to do instead is learn how to interface with the API. This will allow you to manipulate Google docs.
https://developers.google.com/drive/

Categories

Resources