Function set_user_agent

Source
pub fn set_user_agent(agent: &str)
Expand description

Sets the User-Agent header used in all API requests.

This string should include some contact method (e.g. email), and either your name or the name of your software.

ยงExample

tasvideos_api_rs::set_user_agent("John Smith (johnsmith@gmail.com)");