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

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

Related

Google Drive link sharing using Java

I want my Java code to generate Google Drive share links to certain files. I have seen posts which explained how to do it by using other programming languages, but I could not find anything about doing that in Java. Any thoughts?
You can do it using Google drive Java API. Check out this link
https://o7planning.org/en/11889/manipulating-files-and-folders-on-google-drive-using-java

Where is the Java Google Gmail Api located?

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

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/

Uploading Files with different formats to a URL using Java client

I need to write some code in Java to upload a file(.tz format) to a URL(prqs#vks.com) by using HTTP PUT/POST and SMTP.I have no idea how to do this and my application is not a web based application i have to write a pure java client to do this. I searched the net but could not find a suitable tutorial on how to do this also i found a lot of stuff where in they are uploading file using a HTML form to a server. but that is not what i want.
Can you please let me know how this is to be done. If you can direct me to a tutorial or provide any sample code then it would be very helpful. I am scratching my head on this for a long time now.
Thanks
vikeng21
I do this all the time from a server side Java Application.
If what your asking for is creating an e-mail with an attached file in .tz format then there are some good resources out there.
I personally used the JavaMail API. It comes with attached JavaDoc and examples. Take a look at the samples in the demo directory within. Hopefully it should help you out.
Java Mail API
You can try out Apache Commons Fileupload for uploading files.
Have a look at this example as well. This might work for you

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