Code: Select all
constant kAuthURL = "https://www.dropbox.com/oauth2/authorize"
constant kTokenURL = "https://api.dropboxapi.com/oauth2/token"
constant kClientID = "xxxxxx"
constant kClientSecret = "xxxxxxx"
constant kScopes = ""
OAuth2 kAuthURL, kTokenURL, kClientID, kClientSecret, kScopes, 80
if the result is not empty then (Result empty)
answer error "Not authorized!"
else
local tAuth
put it into tAuth tAuth EMPTY since no user interaction?
end if