Skip to content

Commit 2167a33

Browse files
committed
apps: add get_app
1 parent ce8c885 commit 2167a33

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/api/apps.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,14 @@ impl<'octo> AppsRequestHandler<'octo> {
107107

108108
self.crab.get(&route, None::<&()>).await
109109
}
110+
111+
/// Get a GitHub App by its slug.
112+
pub async fn get_app(
113+
&self,
114+
app_slug: impl AsRef<str>,
115+
) -> crate::Result<crate::models::apps::App> {
116+
let route = format!("/apps/{app_slug}", app_slug = app_slug.as_ref());
117+
118+
self.crab.get(&route, None::<&()>).await
119+
}
110120
}

0 commit comments

Comments
 (0)