miraihttpapi


Namemiraihttpapi JSON
Version 1.3 PyPI version JSON
download
home_pagehttp://www.icedream.space
SummaryUse mirai-api-http(v2+) http polling to interconnect the interface
upload_time2024-05-15 12:35:04
maintainerNone
docs_urlNone
authorEsdrin
requires_pythonNone
licenseMIT LICENSE
keywords mirai api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 快速上手

```python
from miraihttpapi import MiraiCore
from miraihttpapi import MessageChain
with MiraiCore(server_url, verifykey, qqid) as mirai:
    mirai.sendFriendMessage(123456789,MessageChain().plain("Hello"))
```

# 配置文件创建和导入

使用`miraihttpapi.Configer.create(path)`创建一个新的配置文件

使用`miraihttpapi.Configer.load(path)`加载一个配置文件并返回一个未连接的miraihttpapi.MiraiCore(支持使用with进行管理)

            

Raw data

            {
    "_id": null,
    "home_page": "http://www.icedream.space",
    "name": "miraihttpapi",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "mirai, api",
    "author": "Esdrin",
    "author_email": "esdrin@icedream.space",
    "download_url": "https://files.pythonhosted.org/packages/18/a7/ce32fcb5400e67274bfb5f2c630c368e9b2c6d981ded44debc3c713821d7/miraihttpapi-1.3.tar.gz",
    "platform": "any",
    "description": "# \u5feb\u901f\u4e0a\u624b\r\n\r\n```python\r\nfrom miraihttpapi import MiraiCore\r\nfrom miraihttpapi import MessageChain\r\nwith MiraiCore(server_url, verifykey, qqid) as mirai:\r\n    mirai.sendFriendMessage(123456789,MessageChain().plain(\"Hello\"))\r\n```\r\n\r\n# \u914d\u7f6e\u6587\u4ef6\u521b\u5efa\u548c\u5bfc\u5165\r\n\r\n\u4f7f\u7528`miraihttpapi.Configer.create(path)`\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u914d\u7f6e\u6587\u4ef6\r\n\r\n\u4f7f\u7528`miraihttpapi.Configer.load(path)`\u52a0\u8f7d\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u5e76\u8fd4\u56de\u4e00\u4e2a\u672a\u8fde\u63a5\u7684miraihttpapi.MiraiCore(\u652f\u6301\u4f7f\u7528with\u8fdb\u884c\u7ba1\u7406)\r\n",
    "bugtrack_url": null,
    "license": "MIT LICENSE",
    "summary": "Use mirai-api-http(v2+) http polling to interconnect the interface",
    "version": "1.3",
    "project_urls": {
        "Homepage": "http://www.icedream.space"
    },
    "split_keywords": [
        "mirai",
        " api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2d581198d5849634538f08ecffacc43854305e9912a8b6c5953951b425a3c8ee",
                "md5": "914c693cf8fff1134e17f7aec2153139",
                "sha256": "72fa4be0603e2005fb61d1c997a8d11463b6d02ed3aa9249e8c8d1cbd3ced99b"
            },
            "downloads": -1,
            "filename": "miraihttpapi-1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "914c693cf8fff1134e17f7aec2153139",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6857,
            "upload_time": "2024-05-15T12:35:02",
            "upload_time_iso_8601": "2024-05-15T12:35:02.675504Z",
            "url": "https://files.pythonhosted.org/packages/2d/58/1198d5849634538f08ecffacc43854305e9912a8b6c5953951b425a3c8ee/miraihttpapi-1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "18a7ce32fcb5400e67274bfb5f2c630c368e9b2c6d981ded44debc3c713821d7",
                "md5": "a7843ea788064924f5dfbf59f377d5bc",
                "sha256": "efa2eb3a0dc9eb28777329ca61ac7f1a8a5dc0f42112624f1742d033feaf9b3e"
            },
            "downloads": -1,
            "filename": "miraihttpapi-1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "a7843ea788064924f5dfbf59f377d5bc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6895,
            "upload_time": "2024-05-15T12:35:04",
            "upload_time_iso_8601": "2024-05-15T12:35:04.811103Z",
            "url": "https://files.pythonhosted.org/packages/18/a7/ce32fcb5400e67274bfb5f2c630c368e9b2c6d981ded44debc3c713821d7/miraihttpapi-1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-15 12:35:04",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "miraihttpapi"
}
        
Elapsed time: 0.29289s