From 3c7ea5843222202699cfbcd4ad3bd9997c3bda0e Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Fri, 25 Nov 2011 09:45:43 +0000 Subject: [PATCH] MDL-29960 repository/dropbox - update to use 1.0 API version --- repository/dropbox/lib.php | 2 +- repository/dropbox/locallib.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/repository/dropbox/lib.php b/repository/dropbox/lib.php index 2b0a3800876..934aed2888e 100644 --- a/repository/dropbox/lib.php +++ b/repository/dropbox/lib.php @@ -66,7 +66,7 @@ class repository_dropbox extends repository { 'oauth_consumer_key'=>$this->dropbox_key, 'oauth_consumer_secret'=>$this->dropbox_secret, 'oauth_callback' => $this->callback->out(false), - 'api_root' => 'http://www.dropbox.com/0/oauth', + 'api_root' => 'https://www.dropbox.com/1/oauth', ); $this->dropbox = new dropbox($args); diff --git a/repository/dropbox/locallib.php b/repository/dropbox/locallib.php index 21adb82d631..7941951f7eb 100644 --- a/repository/dropbox/locallib.php +++ b/repository/dropbox/locallib.php @@ -35,9 +35,9 @@ class dropbox extends oauth_helper { /** dropbox access type, can be dropbox or sandbox */ private $mode = 'dropbox'; /** dropbox api url*/ - private $dropbox_api = 'http://api.dropbox.com/0'; + private $dropbox_api = 'https://api.dropbox.com/1'; /** dropbox content api url*/ - private $dropbox_content_api = 'http://api-content.dropbox.com/0'; + private $dropbox_content_api = 'https://api-content.dropbox.com/1'; function __construct($args) { parent::__construct($args);