Function egg_mode::service::config[][src]

pub async fn config(token: &Token) -> Result<Response<Configuration>>
Expand description

Returns a future that resolves to the current configuration from Twitter, including the maximum length of a t.co URL and maximum photo resolutions per size, among others.

From Twitter: “It is recommended applications request this endpoint when they are loaded, but no more than once a day.”

See the documentation for the Configuration struct for a discussion of what individual fields returned by this function mean.