用于emote收集器api的异步客户端库

aioec的Python项目详细描述


基于aiohttp的Emote Collector API客户端。

用法

importaioecclient=aioec.Client(token='your token here')# if no token is provided, only anonymous endpoints will be available# this step isn't necessary but makes sure that your token is correctmy_user_id=awaitclient.login()# it returns the user ID associated with your token# in a coroutine...emote=awaitclient.emote('Think')emote.name# Thinkawaitemote.edit(name='Think_',description='a real happy thinker')# remove the description:awaitemote.edit(description=None)forgamewisp_emoteinawaitclient.search('GW'):awaitgamewisp_emote.delete()all_emotes=[emoteasyncforemoteinclient.emotes()]popular_emotes=awaitclient.popular()awaitclient.close()# it's also a context manager:asyncwithaioec.Client(token=my_token)asclient:awaitclient.delete('Think_')# this will automatically close the client

许可证

mit/x11

版权所有©2018 Benjamin Mintz<;bmintz@protonmail.com>;

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java JPanel不会对键绑定做出反应   当时间大于零时,不得在UI线程上调用java Await   JTextArea的java线程安全。追加   Java用户输入的字和行计数器   java以spreedsheat格式将数据保存到文件中   java构造函数的意义是什么?   java findViewById返回null,尽管组件的ID存在   java如何向按钮添加图像   java如何中断ExecutorService的线程   java如何将属性(例如枚举)绑定到不同类型的组件属性(例如每个枚举的映像)?   随机森林分类器的java实现   html使用java连接到一个站点并发布,HTTP状态代码200   从类访问属性时发生java编译错误   Java自动填充ArrayList,搜索更好的选项