pub async fn is_gitpoap_event(
poap_event_id: &str,
) -> Result<EventResponse, Box<dyn Error>>
Expand description
GET /v1/poap-event/:poapEventId/is-gitpoap This endpoint checks whether a specific poapEventId is a GitPOAP event.
ยงExample
use gitpoap_rs::v1::is_gitpoap_event;
#[tokio::main]
async fn main() {
let poap_event_id = "12345";
let response = is_gitpoap_event(poap_event_id).await;
assert!(response.is_ok());
let event_response = response.unwrap();
assert_eq!(event_response.is_gitpoap, false);
}