-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathcheck.stone
More file actions
52 lines (39 loc) · 1.71 KB
/
Copy pathcheck.stone
File metadata and controls
52 lines (39 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
namespace check
import common
route user (EchoArg, EchoResult, EchoError)
"This endpoint performs User Authentication, validating the supplied access token,
and returns the supplied string, to allow you to test your code and connection to the
Dropbox API. It has no other effect. If you receive an HTTP 200 response with the supplied
query, it indicates at least part of the Dropbox API infrastructure is working and that the
access token is valid."
attrs
allow_app_folder_app = true
auth = "user"
is_preview = true
scope = "account_info.read"
route app (EchoArg, EchoResult, EchoError)
"This endpoint performs App Authentication, validating the supplied app key and secret,
and returns the supplied string, to allow you to test your code and connection to the
Dropbox API. It has no other effect. If you receive an HTTP 200 response with the supplied
query, it indicates at least part of the Dropbox API infrastructure is working and that the
app key and secret valid."
attrs
allow_app_folder_app = true
auth = "app"
is_preview = true
union EchoError
"EchoError contains the error returned from the Dropbox servers."
user_requested
"The request was successful."
struct EchoArg
"Contains the arguments to be sent to the Dropbox servers."
query String(max_length=500) = ""
"The string that you'd like to be echoed back to you."
example default
query = "foo"
struct EchoResult
"EchoResult contains the result returned from the Dropbox servers."
result String = ""
"If everything worked correctly, this would be the same as query."
example default
result = "foo"