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 que
(self,
query='')
| 118 | # Routes in check namespace |
| 119 | |
| 120 | def check_app(self, |
| 121 | query=''): |
| 122 | """ |
| 123 | This endpoint performs App Authentication, validating the supplied app |
| 124 | key and secret, and returns the supplied string, to allow you to test |
| 125 | your code and connection to the Dropbox API. It has no other effect. If |
| 126 | you receive an HTTP 200 response with the supplied query, it indicates |
| 127 | at least part of the Dropbox API infrastructure is working and that the |
| 128 | app key and secret valid. |
| 129 | |
| 130 | :param str query: The string that you'd like to be echoed back to you. |
| 131 | :rtype: :class:`dropbox.check.EchoResult` |
| 132 | """ |
| 133 | arg = check.EchoArg(query) |
| 134 | r = self.request( |
| 135 | check.app, |
| 136 | 'check', |
| 137 | arg, |
| 138 | None, |
| 139 | ) |
| 140 | return r |
| 141 | |
| 142 | def check_user(self, |
| 143 | query=''): |