-
class
shanbay.api.
API
(client_id, token)¶ -
user
(url='https://api.shanbay.com/account/')¶ 获取用户信息
-
word
(word, url='https://api.shanbay.com/bdc/search/')¶ 查询单词
-
add_word
(word_id, url='https://api.shanbay.com/bdc/learning/')¶ 添加单词
-
examples
(word_id, type=None, url='https://api.shanbay.com/bdc/example/')¶ 获取单词的例句
-
add_example
(word_id, original, translation, url='https://api.shanbay.com/bdc/example/')¶ 创建例句
-
favorite_example
(example_id, url='https://api.shanbay.com/bdc/learning_example/')¶ 收藏例句
-
delete_example
(example_id, url='https://api.shanbay.com/bdc/example/{example_id}/')¶ 删除例句
-
notes
(word_id, url='https://api.shanbay.com/bdc/note/')¶ 获取笔记
-
add_note
(self, word_id, note, url='https://api.shanbay.com/bdc/note/')¶ 创建笔记
-
favorite_note
(note_id, url='https://api.shanbay.com/bdc/learning_note/')¶ 收藏笔记
-
delete_note
(note_id, url='https://api.shanbay.com/bdc/note/{note_id}/')¶ 删除笔记
-
add_example
(*args, **kwargs) 创建例句
-
add_note
(*args, **kwargs) 创建笔记
-
add_word
(*args, **kwargs) 添加单词
-
delete_example
(*args, **kwargs) 删除例句
-
delete_note
(*args, **kwargs) 删除笔记
-
examples
(*args, **kwargs) 获取单词的例句
-
favorite_example
(*args, **kwargs) 收藏例句
-
favorite_note
(*args, **kwargs) 收藏笔记
-
notes
(*args, **kwargs) 获取笔记
-
user
(*args, **kwargs) 获取用户信息
-
word
(*args, **kwargs) 查询单词
-