Publish a site created on the new Google Sites through the API? - google-drive-api

I really love the new Google Sites!
Is there a way to Publish Sites through an API? It's great that we can create and share new Google Sites using the Google Drive API, but I can't see a way to publish a site using the API yet.
Is this feature available, or is there a plan to expose some functionality of the new Google Sites through an API?

The feature for Publishing Website is deprecated through Drive API. However, you can use Google Sites API which allows client application to access and modify Google Site data using Google Data API feeds. Using the API, applications can create and modify the content of a Google Site, upload and download attachments, review the revision history across a Site, and display recent user activity.
There is a single supported version of the Sites Data API. The documentation includes a guide for each supported way to use the API:
Java
Python
HTTP/XML (Protocol)

Related

Google Drive APi and Google Maps in the same application

I'm using Google Maps API in my application. I want to use Google Drive too. Do I need to create a new key and project in google developer console, or just enable Google Drive?
Just enabling Google Drive would be fine.
According to the console help docs:
a project is a collection of settings, credentials, and metadata about the application or applications you're working on that make use of Google Developer APIs and Google Cloud resources.
So in other words, one project == one app.
https://developers.google.com/console/help/new/?hl=en_US#managing-projects-in-the-developers-console
Hope this help!

Should I list my new app on the google apps marketplace, or is the chrome web store enough?

I want to list a new application that will integrate with the Drive UI. Should I list it on the Google Apps Marketplace?
This seems like an obvious "yes," but the documentation seems to say that I only need to upload a manifest file to the Chrome Web Store.
I've been very confused by seemingly contradictory docs and links across different brands, versions of documentation, etc. If anyone can share a succinct list of steps to making my app available to install on a Google Apps domain, I'd appreciate any tips!
You should list your Drive App on the Google Apps marketplace if you want Google Apps Customers use your app. You can list your apps for either Enterprise users or Consumers (gmail and the like) but not both. To list your Drive App in the Marketplace, make sure you specify "container": ["DOMAIN_INSTALLABLE", "GOOGLE_DRIVE"] in your manifest. Note that you should not specify the app member in the manifest as that would make it a consumer app and is not compatible with the Google Apps Marketplace.
We're constantly working to improve our documentation but your feedback is noted.

Google maps on a self hosted website

I've a small self-hosted website hosted on my home server via no-ip.com, wonder if it's legit/possible to use Google maps on it and what would be the viable options if not?
What do you mean with "to use Google maps on it"?
If you just want to allow your users to see a map and navigate on it, it is possible. Google has published a SDK (Google Maps API) that allows other people to interrogate Google servers, collect data (maps), show maps to users and perform a few operations related to positioning and navigation. There is a web (javascript) toolkit for this here:
https://developers.google.com/maps/documentation/javascript/
Other info here:
https://developers.google.com/maps/
https://developers.google.com/maps/documentation/
If you want to host a clone of the Google Mpas service on your PC, then no, this is not possible (both for legal and technical reasons).
A well-known, largely appreciated alternative to Google Maps is openstreetmap:
http://openstreetmap.org/

How can I build a Desktop client for Google Drive?

I want to build desktop application for Windows OS and use Google Drive to save some data in the cloud. After reading Google Drive SDK I found that only Web-applications, were installed from Chrome Web Store are allowed to use API and have access to data on Google Drive.
So my question: do I have any way to build native client (C++, Windows) for Google Drive? I know about hacks with using Google Docs API - but they can stop working any time, and I want something stable. Why Google team do not allow me create desktop application for their service? I have support of many other cloud storages and they do not have such restrictions.
Thanks.
For now you will have to use the (older) Google Document List API which provides full read-write and list access to Google Drive. (Google Drive and the former Google Docs use the same data)
So until we extend the capabilities of the current Drive API to cover the Google Document List use case you should use that instead.
EDIT: We just launched the v2 of the Google Drive SDK so you should now use that instead.
I have been working on a similar problem. I have realized that there is no straight forward way for doing this. Google Drive SDK is not easy to work with and how someone can simplify the process of connecting desktop application to Google drive shortly. I know this is not much help, but I am looking for a soltuion as well.
Here is some links that I have come across, haven't solved my problem either, but if you come to a solution please let us know PLEASE:
How to make GUI Client to upload file in java
Using Java APIs for downloading file from the Google Drive
http://www.coderanch.com/t/643120/Servlets/java/upload-file-drop-box-file

Use Google Drive APIs for android application

I want to integrate Google Drive on an Android application.
It looks like it's possible to integrate Google Drive using Google Drive APIs and Google Document List APIs.
Is there any issue to integrated Google Drive, like guidelines or rules?
I downloaded assets of Google Drive icons from Branding Guide Line. Is it OK to use any icons from them?
Is there any guide lines to integrate Google Drive on android application?
I checked the developer documents for Google Drive. It described them for Chrome Web Applications. I couldn't find any documents regarding Android applications. When will documents and guidelines for Android application be released?
I have some questions concerning Google Drive policy. Where can I get these policy questions?
Most of our branding guidelines ar described in this document as long as you follow them you should be fine using the assets and the Drive brand.
For your policy questions simply ask them here. If they have legal implication please send an email to legal#google.com, you may also try policy#google.com