Where is the Java Google Gmail Api located? - java

I know this may seem like a really stupid question, but I'm actually having a lot of trouble finding the Google Gmail API. I've searched all over Google's developer website, but all I get are downloads to the general google-api-client.
Those are the classes that I need, but when I try to import them with the standard google client api, it says the classes are missing.
That is what Google keeps telling me to download, the google-api-services-gmail-v1-rev32-java-1.20.00 but in the libs folder there aren't any unique jars for the gmail api. In fact, all of the libs in this zip file are the same libs in the general api, which I've already used and can't find the classes I need.
I remember when I used the drive api for Google it was a pain to find the actual drive libraries, but I eventually found them. All I'm asking is where can I find the actually, gmail specific, libraries. A link would be helpful! Thanks! :D

Your best bet is to resort to Maven to manage this for you. Even if you don't want to use Maven to manage dependencies directly, you can still use the repository to find your JAR files:
http://mvnrepository.com/artifact/com.google.apis/google-api-services-gmail/v1-rev32-1.20.0
And this is the direct download link, present on the website above:
http://central.maven.org/maven2/com/google/apis/google-api-services-gmail/v1-rev32-1.20.0/google-api-services-gmail-v1-rev32-1.20.0.jar
Here is the link to the client API:
http://mvnrepository.com/artifact/com.google.api-client/google-api-client/1.20.0

Related

How to integrate Drive API to my Java app (in which file?)

I am a newbie android developer and need to create an app that uploads a .zip file to Google Drive, Downloaded the API but where do I add the code, and how? Please provide a code example.
What do you mean by "downloaded the api"?
Drive has some pretty good documentation on instantiating the drive client as well as an activity to demonstrate different use cases. These may be all the examples you need.
Drive Examples
You can find good examples in the documentation for the Drive API
https://developers.google.com/drive/android/examples/
Or look here: https://developers.google.com/drive/android/intro to find some more explanation about how it all works

Plugins to add features to java

I'm working on a project that requires to add some features to an existing java application using Netbeans. After searching the net, i founded that I should use "plugins". I didn't hear of plugins before.
I have a java application that I should download it from the net, then lets say I have to add a button, when clicked, calls a function that is written in some class in the application. In other words I want to make a new class that is able to access the classes and functions that are written in this application.
What I understood from searching the net is that:
-In the downloaded project's folder there is a folder named plugins.
-This folder contains zip files that contains classes and other stuff.
-I should make a plugin and add it to this folder in order to add a specific feature to the application.
That's what I know, if there is something wrong in what I said, I'll be thankful to correct to me.
Now, my question is that I want a link or website that can teach me how to create and add a plugin to an existing java application. Thank you :)
That entirely depends on the java application you're talking about. Not every application has a Plugins functionality. And not every Java Application uses the same Plugin API. The best bet is to go to the site of the App you're talking about and see if they offer a documentation about their Plugin API.

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?

Need Jar Files for Appengine Samples

I need to run code samples that are on this page:
https://cloud.google.com/appengine/docs/java/datastore/queries
I've been able to locate jars for all but the following:
com.google.appengine.api.datastore.Query.Filter;
com.google.appengine.api.datastore.Query.CompositeFilter;
com.google.appengine.api.datastore.Query.CompositeFilterOperator;
Can anyone point me to where they are located?
I'm also a bit concerned that because I'm getting jar files individually
that I might run into some compatibility issues. Is there one
location that has jars for all the samples on the page I mentioned above?
Thx,
Steve
You need to download the GAE SDK and include it on you project. All those classes are included in there.
GAE is a pretty complex PAAS product. You'll need to setup the whole platform in order to use it, you cant just use some bits of it on its own.

Need this particular jar file

I am trying to connect to the bing api through my java application and query bing programmatically. And I found this page online that gives me sample code to just get a feel of how to go about the entire process. But I am unable to compile and run that code because it has two imports namely
com.microsoft.schemas.livesearch._2008._03.search.LiveSearchServiceStub;
com.microsoft.schemas.livesearch._2008._03.search.LiveSearchServiceStub.*;
Could anybody give me a link to get these jar files.
I already googled it, checked sourceforge and everything. So If anyone knows of another site that definitely has this jar file, or if you have a copy of these two jar files please do let me know how I can obtain them. It would be a great help.
Thanks.
By the names of those classes they are just Stub classes, meaning they are just dummy-versions of the classes without any real functionality. You can probably just create your own easily.
Bing provides it search services via Web Services. You can access them from any language that provides a web services interface (or just web access).
Bing API

Categories

Resources