{"id":20732385,"url":"https://github.com/jpush/jmessage-api-python-client","last_synced_at":"2025-04-23T22:09:00.308Z","repository":{"id":32406485,"uuid":"35983280","full_name":"jpush/jmessage-api-python-client","owner":"jpush","description":"JiGuang's officially supported Python client library for accessing JMessage APIs. 极光官方支持的 JMessage Python 版本服务器端 SDK。","archived":false,"fork":false,"pushed_at":"2019-10-23T00:33:42.000Z","size":91,"stargazers_count":9,"open_issues_count":1,"forks_count":6,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-04-23T22:07:52.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.jiguang.cn","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpush.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-21T01:20:04.000Z","updated_at":"2021-04-26T01:48:37.000Z","dependencies_parsed_at":"2022-08-27T23:20:20.948Z","dependency_job_id":null,"html_url":"https://github.com/jpush/jmessage-api-python-client","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjmessage-api-python-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjmessage-api-python-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjmessage-api-python-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjmessage-api-python-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpush","download_url":"https://codeload.github.com/jpush/jmessage-api-python-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250522299,"owners_count":21444511,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T05:19:09.963Z","updated_at":"2025-04-23T22:09:00.206Z","avatar_url":"https://github.com/jpush.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JMessage API Python SDK\n\n## 简介\n这是 JMessage REST API 的 Python 封装开发包，是由极光推送官方提供的，一般支持最新的 API 功能。\n\n对应的 REST API 文档：[https://docs.jiguang.cn/jmessage/server/rest_api_im/](https://docs.jiguang.cn/jmessage/server/rest_api_im/)\n\n## 支持\n\nPython 2.7\n\n## 安装\n\npip 安装\n```\npip install jmessage\n```\n\n下载之后运行\n```\npython setup.py install \n```\n\n## 样例\n\u003e以下代码截取自项目目录下的 example/users/regist_user.py\n\n```\nfrom jmessage import users\nfrom jmessage import common\nfrom conf import *\nimport json\njmessage=common.JMessage(app_key,master_secret)\nusers=jmessage.create_users()\nuser= [users.build_user(\"user\",\"password\")]\nresponse=users.regist_user(user)\nprint (response.content)\n```\n\n\u003e以下代码截取自项目目录下的 example/messages/send_message.py\n\n```\nfrom jmessage import users\nfrom jmessage import common\nfrom conf import *\njmessage=common.JMessage(app_key,master_secret)\nmessages=jmessage.create_messages()\nmessage=messages.build_message(1,\"single\",\"admin\",\"text\",\n                                \"xiaohuihui\",\"admin\",\"Hello, JMessage!\")\nresponse=messages.send_messages(message)\nprint (response.content)\n```\n\n\u003e以下代码截取自项目目录下的 example/groups/create_groups.py\n\n```\n\nfrom jmessage import users\nfrom jmessage import common\nfrom conf import *\njmessage=common.JMessage(app_key,master_secret)\ngroups=jmessage.create_groups()\ngroup=groups.build_group(owner_username=\"dev_fang\", name=\"jpush\",\n                          members_username=[\"xiaohuihui\"], desc=\"jpush group\")\nresponse=groups.create_group(group)\nprint (response.content)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjmessage-api-python-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpush%2Fjmessage-api-python-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjmessage-api-python-client/lists"}