Basic fetch channel
This commit is contained in:
parent
38d1cbbd50
commit
e1cb00f0b1
4 changed files with 2156 additions and 0 deletions
|
|
@ -0,0 +1,11 @@
|
|||
use std::error::Error;
|
||||
use reqwest::Client;
|
||||
use koucha::fetch_channel;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn Error>> {
|
||||
let client = Client::new();
|
||||
let _channel = fetch_channel(&client, "https://lorem-rss.herokuapp.com/feed?unit=year").await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue