MCPcopy Index your code
hub / github.com/clearloop/leetcode-cli / get_category_problems

Method get_category_problems

src/plugins/leetcode.rs:64–79  ·  view source on GitHub ↗

Get category problems

(self, category: &str)

Source from the content-addressed store, hash-verified

62
63 /// Get category problems
64 pub async fn get_category_problems(self, category: &str) -> Result<Response> {
65 trace!("Requesting {} problems...", &category);
66 let url = &self.conf.sys.urls.problems(category);
67
68 Req {
69 default_headers: self.default_headers,
70 refer: None,
71 info: false,
72 json: None,
73 mode: Mode::Get,
74 name: "get_category_problems",
75 url: url.to_string(),
76 }
77 .send(&self.client)
78 .await
79 }
80
81 pub async fn get_question_ids_by_tag(self, slug: &str) -> Result<Response> {
82 trace!("Requesting {} ref problems...", &slug);

Callers 1

download_problemsMethod · 0.80

Calls 2

problemsMethod · 0.80
sendMethod · 0.80

Tested by

no test coverage detected