all repos — omglolrs @ f41fa5a88bc5b170701e4e7b51f8f4294b774e08

A Rust wrapper for api.omg.lol.

Get all statuses is NO AUTH
Gil Poiares-Oliveira gil@poiares-oliveira.com
Tue, 02 May 2023 19:34:53 +0100
commit

f41fa5a88bc5b170701e4e7b51f8f4294b774e08

parent

a417490fd74dac46002004417f97ccf2c8bdf0a7

1 files changed, 13 insertions(+), 15 deletions(-)

jump to
M src/client.rssrc/client.rs

@@ -68,21 +68,6 @@ )

.await } - // Statuslog - - pub async fn get_all_statuses( - &self, - address: &str, - ) -> Result<RequestResponse<StatuslogAllStatuses>, Box<dyn std::error::Error>> { - self.send_request::<StatuslogAllStatuses>( - true, - Method::GET, - format!("address/{}/statuses", &address).as_ref(), - None, - ) - .await - } - pub async fn get_status( &self, address: &str,

@@ -526,6 +511,19 @@ self.send_request::<WeblogEntryResponse>(

false, Method::GET, format!("address/{}/weblog/post/latest", address).as_ref(), + None, + ) + .await + } + + pub async fn get_all_statuses( + &self, + address: &str, + ) -> Result<RequestResponse<StatuslogAllStatuses>, Box<dyn std::error::Error>> { + self.send_request::<StatuslogAllStatuses>( + false, + Method::GET, + format!("address/{}/statuses", &address).as_ref(), None, ) .await