[libgdata/wip/rishi/drive: 2/6] documents: Point the entry URI at the Drive v2 API
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata/wip/rishi/drive: 2/6] documents: Point the entry URI at the Drive v2 API
- Date: Tue, 21 Apr 2015 15:08:21 +0000 (UTC)
commit f3c268df0ecc9d91f18338259560fde79522347a
Author: Debarshi Ray <debarshir gnome org>
Date: Thu Apr 16 18:48:16 2015 +0200
documents: Point the entry URI at the Drive v2 API
https://bugzilla.gnome.org/show_bug.cgi?id=684920
gdata/services/documents/gdata-documents-entry.c | 13 +------------
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 6d772d0..0e81354 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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]