dropbox_sdk/generated/async_routes/
check.rs

1// DO NOT EDIT
2// This file was @generated by Stone
3
4#![allow(
5    clippy::too_many_arguments,
6    clippy::large_enum_variant,
7    clippy::result_large_err,
8    clippy::doc_markdown,
9)]
10
11#[allow(unused_imports)]
12pub use crate::generated::types::check::*;
13
14/// This endpoint performs App Authentication, validating the supplied app key and secret, and
15/// returns the supplied string, to allow you to test your code and connection to the Dropbox API.
16/// It has no other effect. If you receive an HTTP 200 response with the supplied query, it
17/// indicates at least part of the Dropbox API infrastructure is working and that the app key and
18/// secret valid.
19///
20/// # Stability
21/// *PREVIEW*: This function may change or disappear without notice.
22#[cfg(feature = "unstable")]
23#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
24pub fn app<'a>(
25    client: &'a impl crate::async_client_trait::AppAuthClient,
26    arg: &'a EchoArg,
27) -> impl std::future::Future<Output=Result<EchoResult, crate::Error<crate::NoError>>> + Send + 'a {
28    crate::client_helpers::request(
29        client,
30        crate::client_trait_common::Endpoint::Api,
31        crate::client_trait_common::Style::Rpc,
32        "check/app",
33        arg,
34        None)
35}
36
37/// This endpoint performs User Authentication, validating the supplied access token, and returns
38/// the supplied string, to allow you to test your code and connection to the Dropbox API. It has no
39/// other effect. If you receive an HTTP 200 response with the supplied query, it indicates at least
40/// part of the Dropbox API infrastructure is working and that the access token is valid.
41///
42/// # Stability
43/// *PREVIEW*: This function may change or disappear without notice.
44#[cfg(feature = "unstable")]
45#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
46pub fn user<'a>(
47    client: &'a impl crate::async_client_trait::UserAuthClient,
48    arg: &'a EchoArg,
49) -> impl std::future::Future<Output=Result<EchoResult, crate::Error<crate::NoError>>> + Send + 'a {
50    crate::client_helpers::request(
51        client,
52        crate::client_trait_common::Endpoint::Api,
53        crate::client_trait_common::Style::Rpc,
54        "check/user",
55        arg,
56        None)
57}
58