(titleSlug)
| 126 | |
| 127 | // get details of ac code. |
| 128 | const getQuestionData = async (titleSlug) => { |
| 129 | const qglRequest = await createGqlRequest() |
| 130 | // interface from 'https://leetcode-cn.com/problems/add-two-numbers/' |
| 131 | const json = await qglRequest(`{ |
| 132 | question(titleSlug: "${titleSlug}") { |
| 133 | topicTags { |
| 134 | name |
| 135 | slug |
| 136 | } |
| 137 | } |
| 138 | }`) |
| 139 | const question = json.question || {} |
| 140 | return question |
| 141 | } |
| 142 | |
| 143 | module.exports = { |
| 144 | login, |
no test coverage detected