You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let body = octocrab::instance().repos("beyarkay","eskom-calendar").raw_file("main".to_string(),"manually_specified.yaml").await.unwrap().into_body();
And that gets me a hyper::Body object, but I can't figure out how to extract the content from it. I've tried to look online, but all the answers 1234 suggest things that don't work with the latest version of hyper.
Is it possible to get the raw text of a file hosted on github? I've resorted to using reqwest and just downloading the raw.githubusercontent.com version of the file, but the raw_file method sounds like it should be able to give me the raw file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to get https://github.com/beyarkay/eskom-calendar/blob/main/manually_specified.yaml as a
String
or&str
so that I can parse the YAML and edit it. How do I do this? I've tried:And that gets me a
hyper::Body
object, but I can't figure out how to extract the content from it. I've tried to look online, but all the answers 1 2 3 4 suggest things that don't work with the latest version of hyper.Is it possible to get the raw text of a file hosted on github? I've resorted to using
reqwest
and just downloading the raw.githubusercontent.com version of the file, but theraw_file
method sounds like it should be able to give me the raw file.Beta Was this translation helpful? Give feedback.
All reactions