sync_get

Function sync_get 

Source
pub fn sync_get(url: &str) -> Response
Expand description

ยงTest function which sends a synchronous get request to any api and returns a response object which can be then parsed into json

Recommended to use the requests_rs::requests::api_referencer::get_and_save_json function instead of this.

use requests::requests::api_referencer::sync_get;
 
sync_get("https://api-url.com");