pub async fn sequence_get(&mut self, url: &str) -> Result<(u64, Vec<u8>)> {
        debug!("Getting Public Sequence data from: {:?}", url);
        let (safe_url, _) = self.parse_and_resolve_url(url).await?;

        self.fetch_sequence(&safe_url).await
    }
/// Get data from a Public Sequence on the network
///
/// ## Example
/// ```
/// # use sn_api::Safe;
/// # let mut safe = Safe::default();
/// # async_std::task::block_on(async {
/// #   safe.connect("", Some("fake-credentials")).await.unwrap();
///     let data = b"First in the sequence";
///     let xorurl = safe.sequence_create(data, None, 20_000, false).await.unwrap();
///     let received_data = safe.sequence_get(&xorurl).await.unwrap();
///     assert_eq!(received_data, (0, data.to_vec()));
/// # });
/// ```
Get data from a Public Sequence on the network
Get data from a Public Sequence on the network
pub async fn sequence_get(&mut self, url: &str) -> Result<(u64, Vec<u8>)> {
        debug!("Getting Public Sequence data from: {:?}", url);
        let (safe_url, _) = self.parse_and_resolve_url(url).await?;
        self.fetch_sequence(&safe_url).await
    }
pub async fn sequence_get ( & mut self , url : & str ) -> Result < ( u64 , Vec < u8 > ) > { debug ! ( " " url ) ; let ( safe_url , _ ) = self . parse_and_resolve_url ( url ) . await ? ; self . fetch_sequence ( & safe_url ) . await }
Get data from a Public Sequence on the network
Get data from a Public Sequence on the network
&mut self
url
&str
example
None
use sn_api::safe;
None
let mut safe = safe::default();
None
async_std::task::block_on(async {
None
safe.connect("", some("fake-credentials")).await.unwrap();
let data = b"First in the sequence";
let xorurl = safe.sequence_create(data, None, 20_000, false).await.unwrap();
let received_data = safe.sequence_get(&xorurl).await.unwrap();
assert_eq!(received_data, (0, data.to_vec())).
let data = b " First in the sequence " ; let xorurl = safe . sequence_create ( data None 20_000 false ) . await . unwrap () ; let received_data = safe . sequence_get ( &xorurl ) . await . unwrap () ; assert_eq! ( received_data ( 0 data . to_vec () )) .
});
None