summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2015-04-16 18:48:16 +0200
committerDebarshi Ray <debarshir@gnome.org>2015-04-22 16:54:53 +0200
commit54da3958675d2b8cdd0cedf19e5a5b5ffc7c6d92 (patch)
tree65bf93bd441d24405e1b1c3c7c7745ffe89b5d42
parentac384ef8538871ee7e52fbfcb4e989c0a04a8aae (diff)
downloadlibgdata-54da3958675d2b8cdd0cedf19e5a5b5ffc7c6d92.tar.gz
documents: Point the entry URI at the Drive v2 API
https://bugzilla.gnome.org/show_bug.cgi?id=684920
-rw-r--r--gdata/services/documents/gdata-documents-entry.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gdata/services/documents/gdata-documents-entry.c b/gdata/services/documents/gdata-documents-entry.c
index 6d772d0d..0e81354f 100644
--- a/gdata/services/documents/gdata-documents-entry.c
+++ b/gdata/services/documents/gdata-documents-entry.c
@@ -524,18 +524,7 @@ get_namespaces (GDataParsable *parsable, GHashTable *namespaces)
static gchar *
get_entry_uri (const gchar *id)
{
- const gchar *resource_id;
-
- /* Version 3: We get an ID similar to “https://docs.google.com/feeds/id/[resource_id]” and want an entry URI
- * similar to “https://docs.google.com/feeds/default/private/full/[resource_id]”. */
- resource_id = g_strrstr (id, "/");
-
- if (resource_id == NULL) {
- /* Bail! */
- return g_strdup (id);
- }
-
- return g_strconcat (_gdata_service_get_scheme (), "://docs.google.com/feeds/default/private/full", resource_id, NULL);
+ return g_strconcat ("https://www.googleapis.com/drive/v2/files/", id, NULL);
}
/**