@@ -9,21 +9,24 @@ package org.hamster.dropbox
99 */
1010 public class DropboxConfig
1111 {
12- public static const API_VERSION : int = 0 ;
13- public static const SERVER : String = 'api.dropbox.com' ;
14- public static const CONTENT_SERVER : String = 'api-content.dropbox.com' ;
12+ public static const API_VERSION : int = 1 ;
13+ public static const SERVER : String = 'https:// api.dropbox.com' ;
14+ public static const CONTENT_SERVER : String = 'https:// api-content.dropbox.com' ;
1515 public static const PORT : int = 80 ;
16- public static const REQUEST_TOKEN_URL : String = 'http://api.dropbox.com/0/oauth/request_token' ;
17- public static const ACCESS_TOKEN_URL : String = 'http://api.dropbox.com/0/oauth/access_token' ;
18- //public static const AUTHORIZATION_URL:String = 'http://api.dropbox.com/0/oauth/authorize';
19- public static const AUTHORIZATION_URL : String = 'https://www.dropbox.com/0/oauth/authorize' ;
20- public static const TOKEN_URL : String = 'https://api.dropbox.com/0/token' ;
16+ // public static const REQUEST_TOKEN_URL:String = 'http://api.dropbox.com/0/oauth/request_token';
17+ // public static const ACCESS_TOKEN_URL:String = 'http://api.dropbox.com/0/oauth/access_token';
18+ // public static const AUTHORIZATION_URL:String = 'https://www.dropbox.com/0/oauth/authorize';
19+ // public static const TOKEN_URL:String = 'https://api.dropbox.com/0/token';
20+ public static const REQUEST_TOKEN_URL : String = 'https://api.dropbox.com/1/oauth/request_token' ;
21+ public static const ACCESS_TOKEN_URL : String = 'https://api.dropbox.com/1/oauth/access_token' ;
22+ public static const AUTHORIZATION_URL : String = 'https://www.dropbox.com/1/oauth/authorize' ;
23+ public static const TOKEN_URL : String = 'https://api.dropbox.com/1/token' ;
2124 public static const SANDBOX : String = 'sandbox' ;
2225 public static const DROPBOX : String = 'dropbox' ;
2326 /**
2427 * xperiments UPDATE
2528 */
26- public static const ACCOUNT_CREATE_URL : String = 'http ://api.dropbox.com/0 /account' ;
29+ public static const ACCOUNT_CREATE_URL : String = 'https ://api.dropbox.com/1 /account' ;
2730
2831 public var consumerKey: String ;
2932 public var consumerSecret: String ;
@@ -70,6 +73,12 @@ package org.hamster.dropbox
7073 */
7174 public var accountCreateUrl: String ;
7275
76+ /**
77+ * * Added In Version 1
78+ * locale for response language
79+ */
80+ public var locale: String = "en_US" ;
81+
7382 /**
7483 * Constructor
7584 *
@@ -83,7 +92,7 @@ package org.hamster.dropbox
8392 public function DropboxConfig (
8493 consumerKey :String , consumerSecret :String ,
8594 requestTokenKey :String = "" , requestTokenSecret :String = "" ,
86- accessTokenKey :String = "" , accessTokenSecret :String = "" )
95+ accessTokenKey :String = "" , accessTokenSecret :String = "" , locale : String = "en_US" )
8796 {
8897 this . setConsumer(consumerKey, consumerSecret);
8998 this . setRequestToken(requestTokenKey, requestTokenSecret);
@@ -100,6 +109,8 @@ package org.hamster.dropbox
100109 * xperiments UPDATE
101110 */
102111 this . accountCreateUrl = ACCOUNT_CREATE_URL ;
112+
113+ this . locale = locale ;
103114 }
104115
105116 /**
0 commit comments