[libgdata] documents: Use Drive v2 scopes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] documents: Use Drive v2 scopes
- Date: Wed, 22 Apr 2015 14:55:37 +0000 (UTC)
commit 4d2dce3539a40a93b0db3a6aad62aa04c005276f
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Apr 17 12:51:53 2015 +0200
documents: Use Drive v2 scopes
https://bugzilla.gnome.org/show_bug.cgi?id=684920
gdata/services/documents/gdata-documents-service.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/gdata/services/documents/gdata-documents-service.c
b/gdata/services/documents/gdata-documents-service.c
index a43f51e..1be8797 100644
--- a/gdata/services/documents/gdata-documents-service.c
+++ b/gdata/services/documents/gdata-documents-service.c
@@ -288,9 +288,8 @@ static gchar *_build_v2_upload_uri (GDataDocumentsFolder *folder) G_GNUC_WARN_UN
static gchar *_get_upload_uri_for_query_and_folder (GDataDocumentsUploadQuery *query,
GDataDocumentsFolder *folder) G_GNUC_WARN_UNUSED_RESULT
G_GNUC_MALLOC;
-_GDATA_DEFINE_AUTHORIZATION_DOMAIN (documents, "writely", "https://docs.google.com/feeds/")
+_GDATA_DEFINE_AUTHORIZATION_DOMAIN (documents, "writely", "https://www.googleapis.com/auth/drive")
_GDATA_DEFINE_AUTHORIZATION_DOMAIN (spreadsheets, "wise", "https://spreadsheets.google.com/feeds/")
-_GDATA_DEFINE_AUTHORIZATION_DOMAIN (docs_downloads, "writely", "https://docs.googleusercontent.com/")
G_DEFINE_TYPE_WITH_CODE (GDataDocumentsService, gdata_documents_service, GDATA_TYPE_SERVICE,
G_IMPLEMENT_INTERFACE (GDATA_TYPE_BATCHABLE, NULL))
static void
@@ -362,7 +361,6 @@ get_authorization_domains (void)
authorization_domains = g_list_prepend (authorization_domains, get_documents_authorization_domain ());
authorization_domains = g_list_prepend (authorization_domains, get_spreadsheets_authorization_domain
());
- authorization_domains = g_list_prepend (authorization_domains,
get_docs_downloads_authorization_domain ());
return authorization_domains;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]