Function pastemyst::paste::get_private_paste [−][src]
pub fn get_private_paste(
id: &str,
auth_token: &str
) -> Result<PasteObject, Error>
Gets a private paste's data in json format
from pastemyst
synchronously. It returns a Result
with a PasteObject
and error.
Examples
use pastemyst::paste::get_private_paste; use pastemyst::paste::PasteResult; fn main() -> PasteResult<()> { let foo = get_private_paste("pasteID", "Your PasteMyst Token. Get it from: https://paste.myst.rs/user/settings"); println!("{:?}", foo._id); Ok(()) }