Learner Learner 1, 3 3 gold badges 13 13 silver badges 31 31 bronze badges. Add a comment. Active Oldest Votes. DownloadData request.
SaveAs path ; With HttpClient , it's a bit more involved. DownloadFileAsync folderPath, "foo. Improve this answer. JMK Todd Menier Todd Menier The method SaveAs was removed? I can't use it. Probably I have to use File. JCarlos : The SaveAs method is still there. It's in the RestSharp. Extensions namespace, MiscExtensions class.
Updated ReadMd Link: github. Too bad DownloadData doesn't have an async version — Mugen. It seems SaveAs was discontinued. DownloadData request ; File. See comment in above answer. SaveAs is still there, you have to add a using statement: using RestSharp. Extensions; — C Johnson. SaveAs has been marked obsolete in newer versions. ExecuteTaskAsync request ; if response. Help Create Join Login. Application Development. IT Management. Project Management. Resources Blog Articles.
Menu Help Create Join Login. SourceForge is not affiliated with RestSharp. Add a Review. Get project updates , sponsored content from our select partners, and more. Full Name. Phone Number. Job Title. The string value of the directory to store file in. Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment. You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. DownloadData new RestRequest " " , Method. GET ;. WriteAllBytes Path. Combine directory , " poster-got.
0コメント