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, i
(self,
query='')
| 140 | return r |
| 141 | |
| 142 | def check_user(self, |
| 143 | query=''): |
| 144 | """ |
| 145 | This endpoint performs User Authentication, validating the supplied |
| 146 | access token, and returns the supplied string, to allow you to test your |
| 147 | code and connection to the Dropbox API. It has no other effect. If you |
| 148 | receive an HTTP 200 response with the supplied query, it indicates at |
| 149 | least part of the Dropbox API infrastructure is working and that the |
| 150 | access token is valid. |
| 151 | |
| 152 | Route attributes: |
| 153 | scope: account_info.read |
| 154 | |
| 155 | :param str query: The string that you'd like to be echoed back to you. |
| 156 | :rtype: :class:`dropbox.check.EchoResult` |
| 157 | """ |
| 158 | arg = check.EchoArg(query) |
| 159 | r = self.request( |
| 160 | check.user, |
| 161 | 'check', |
| 162 | arg, |
| 163 | None, |
| 164 | ) |
| 165 | return r |
| 166 | |
| 167 | # ------------------------------------------ |
| 168 | # Routes in contacts namespace |