|
|
|
@ -12,7 +12,9 @@ use crate::api_core::adding_urls::{
|
|
|
|
|
GetUrlFilesResponse, GetUrlInfo, GetUrlInfoResponse,
|
|
|
|
|
};
|
|
|
|
|
use crate::api_core::common::{FileIdentifier, FileMetadataInfo, FileRecord};
|
|
|
|
|
use crate::api_core::managing_pages::{GetPage, GetPagesResponse};
|
|
|
|
|
use crate::api_core::managing_pages::{
|
|
|
|
|
GetPageInfo, GetPageInfoResponse, GetPages, GetPagesResponse,
|
|
|
|
|
};
|
|
|
|
|
use crate::api_core::searching_and_fetching_files::{
|
|
|
|
|
FileMetadata, FileMetadataResponse, FileSearchLocation, GetFile, SearchFiles,
|
|
|
|
|
SearchFilesResponse,
|
|
|
|
@ -311,6 +313,12 @@ impl Client {
|
|
|
|
|
|
|
|
|
|
/// Returns all pages of the client
|
|
|
|
|
pub async fn get_pages(&self) -> Result<GetPagesResponse> {
|
|
|
|
|
self.get_and_parse::<GetPage, ()>(&()).await
|
|
|
|
|
self.get_and_parse::<GetPages, ()>(&()).await
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Returns information about a single page
|
|
|
|
|
pub async fn get_page_info<S: AsRef<str>>(&self, page_key: S) -> Result<GetPageInfoResponse> {
|
|
|
|
|
self.get_and_parse::<GetPageInfo, [(&str, &str)]>(&[("page_key", page_key.as_ref())])
|
|
|
|
|
.await
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|