Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-29960 repository/dropbox - update to use 1.0 API version

  • Loading branch information...
commit c745d1e80e8e1d37731a800e561af6d5bddf8c9c 1 parent 79b0fec
@danpoltawski danpoltawski authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  repository/dropbox/lib.php
  2. +2 −2 repository/dropbox/locallib.php
View
2  repository/dropbox/lib.php
@@ -66,7 +66,7 @@ public function __construct($repositoryid, $context = SYSCONTEXTID, $options = a
'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);
View
4 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);

0 comments on commit c745d1e

Please sign in to comment.
Something went wrong with that request. Please try again.