Class DbxUserCheckRequests


  • public class DbxUserCheckRequests
    extends java.lang.Object
    Routes in namespace "check".
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      EchoResult user()
      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.
      EchoResult user​(java.lang.String query)
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DbxUserCheckRequests

        public DbxUserCheckRequests​(DbxRawClientV2 client)
    • Method Detail

      • user

        public EchoResult user()
                        throws DbxApiException,
                               DbxException
        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.

        The query request parameter will default to "" (see user(String)).

        Returns:
        EchoResult contains the result returned from the Dropbox servers.
        Throws:
        DbxApiException
        DbxException
      • user

        public EchoResult user​(java.lang.String query)
                        throws DbxApiException,
                               DbxException
        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.
        Parameters:
        query - The string that you'd like to be echoed back to you. Must have length of at most 500 and not be null.
        Returns:
        EchoResult contains the result returned from the Dropbox servers.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
        DbxApiException
        DbxException