CheckRoutes

public class CheckRoutes : DropboxTransportClientOwning

Routes for the check namespace For Objective-C compatible routes see DBCheckRoutes

  • 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.

    • scope: account_info.read

    Declaration

    Swift

    @discardableResult
    public func user(query: String = "") -> RpcRequest<Check.EchoResultSerializer, VoidSerializer>

    Parameters

    query

    The string that you’d like to be echoed back to you.

    Return Value

    Through the response callback, the caller will receive a Check.EchoResult object on success or a Void object on failure.