change POST /search to GET /search

This commit is contained in:
Paul Woolcock
2018-09-07 00:53:01 -04:00
parent 20a9c69adc
commit 34e2c00866
6 changed files with 57 additions and 5 deletions
+2 -2
View File
@@ -9,9 +9,9 @@ use std::error;
fn main() -> Result<(), Box<error::Error>> {
let mastodon = register::get_mastodon_data()?;
let input = register::read_line("Enter the term you'd like to search: ")?;
let result = mastodon.search_accounts(&input, None, true)?;
let result = mastodon.search(&input, false)?;
println!("{:#?}", result.initial_items);
println!("{:#?}", result);
Ok(())
}