{"id":13679541,"url":"https://github.com/chanify/chanify-ios","last_synced_at":"2025-10-25T16:06:33.625Z","repository":{"id":50553421,"uuid":"336941223","full_name":"chanify/chanify-ios","owner":"chanify","description":"Chanify is a safe and simple notification tools. This repository is iOS clinet for Chanify.","archived":false,"fork":false,"pushed_at":"2024-08-16T16:08:36.000Z","size":2808,"stargazers_count":218,"open_issues_count":18,"forks_count":33,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-02T09:06:27.997Z","etag":null,"topics":["anonymous","apns","ios","ios-app","macos-app","notifications","objective-c","open-source","push-notifications"],"latest_commit_sha":null,"homepage":"https://www.chanify.net","language":"Objective-C","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/chanify.png","metadata":{"files":{"readme":"README-zh_CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-08T02:42:40.000Z","updated_at":"2025-03-15T03:17:33.000Z","dependencies_parsed_at":"2024-01-13T16:25:04.227Z","dependency_job_id":"daf9d383-b9a4-4245-86e9-244eb873f17e","html_url":"https://github.com/chanify/chanify-ios","commit_stats":null,"previous_names":[],"tags_count":50,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanify%2Fchanify-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanify%2Fchanify-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanify%2Fchanify-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanify%2Fchanify-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanify","download_url":"https://codeload.github.com/chanify/chanify-ios/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036063,"owners_count":21037092,"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":["anonymous","apns","ios","ios-app","macos-app","notifications","objective-c","open-source","push-notifications"],"created_at":"2024-08-02T13:01:06.653Z","updated_at":"2025-10-25T16:06:28.592Z","avatar_url":"https://github.com/chanify.png","language":"Objective-C","readme":"# Chanify\n\n[![iTunes App Store](https://img.shields.io/itunes/v/1531546573?logo=apple\u0026style=flat-square)](https://itunes.apple.com/app/id1531546573)\n[![GitHub](https://img.shields.io/github/license/chanify/chanify-ios?style=flat-square)](LICENSE)\n\n[English](README.md) | 简体中文\n\nChanify是一个简单的消息推送工具。每一个人都可以利用提供的API来发送消息推送到自己的iOS设备上。\n\n你还可以部署自己的[服务器](https://github.com/chanify/chanify)。\n\n\u003cdetails open=\"open\"\u003e\n  \u003csummary\u003e\u003ch2 style=\"display: inline-block\"\u003eTable of Contents\u003c/h2\u003e\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\u003ca href=\"#入门\"\u003e入门\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\n        \u003ca href=\"#usage\"\u003e用法\u003c/a\u003e\n        \u003cul\u003e\n            \u003cli\u003e\u003ca href=\"#http-api\"\u003eHTTP API\u003c/a\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ca href=\"#命令行\"\u003e命令行\u003c/a\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ca href=\"#python-3\"\u003ePython 3\u003c/a\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ca href=\"#ruby\"\u003eRuby\u003c/a\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ca href=\"#nodejs\"\u003eNodeJS\u003c/a\u003e\u003c/li\u003e\n            \u003cli\u003e\u003ca href=\"#php\"\u003ePHP\u003c/a\u003e\u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#开发者\"\u003e开发者\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#贡献\"\u003e贡献\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#许可证\"\u003e许可证\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\n\n## 入门\n\n1. 从AppStore安装[iOS应用](https://itunes.apple.com/cn/app/id1531546573)（1.0.0或以上版本）。\n2. 从频道详情页面来获取发送使用的令牌`token`。\n\n    ![Get token](Doc/GetToken.gif)\n\n3. 使用API来发送消息。\n4. 也可以通过长按扫描二维码图标来进入创建频道，创建自定义的频道。\n\n    ![NewChannel](Doc/NewChannel.gif)\n\n## 用法\n\n### Http API\n\n- __GET__ 方式\n```\nhttps://api.chanify.net/v1/sender/\u003ctoken\u003e/\u003cmessage\u003e\n```\n\n- __POST__ 方式\n```\nhttps://api.chanify.net/v1/sender/\u003ctoken\u003e\n```\n\nContent-Type: \n\n- `text/plain`: Body is text message\n- `multipart/form-data`: The block of data(\"text\") is text message\n- `application/x-www-form-urlencoded`: `text=\u003curl encoded text message\u003e`\n\n支持以下参数：\n\n| 参数名    | 描述                               |\n| -------- | --------------------------------- |\n| title    | 通知消息的标题                      |\n| sound    | `1` 启用声音提示, 其他情况会静音推送   |\n| priority | `10` 默认优先级, 或者 `5` 较低优先级  |\n\n例如：\n\n```\nhttps://api.chanify.net/v1/sender/\u003ctoken\u003e?sound=1\u0026priority=10\u0026title=hello\n```\n\n### 命令行\n\n```bash\n# 发送文本消息\n$ curl --form-string \"text=hello\" \"https://api.chanify.net/v1/sender/\u003ctoken\u003e\"\n\n# 发送文本文件\n$ cat message.txt | curl -H \"Content-Type: text/plain\" --data-binary @- \"https://api.chanify.net/v1/sender/\u003ctoken\u003e\"\n```\n\n### Python 3\n\n```python\nfrom urllib import request, parse\n\ndata = parse.urlencode({ 'text': 'hello' }).encode()\nreq = request.Request(\"https://api.chanify.net/v1/sender/\u003ctoken\u003e\", data=data)\nrequest.urlopen(req)\n```\n\n### Ruby\n\n```ruby\nrequire 'net/http'\n\nuri = URI('https://api.chanify.net/v1/sender/\u003ctoken\u003e')\nres = Net::HTTP.post_form(uri, 'text' =\u003e 'hello')\nputs res.body\n```\n\n### NodeJS\n\n```javascript\nconst https = require('https')\nconst querystring = require('querystring');\n\nconst data = querystring.stringify({ text: 'hello' })\nconst options = {\n    hostname: 'api.chanify.net',\n    port: 443,\n    path: '/v1/sender/token',\n    method: 'POST',\n    headers: {\n        'Content-Type': 'application/x-www-form-urlencoded',\n        'Content-Length': data.length\n        }\n    }\n    var req = https.request(options, (res) =\u003e {\n    res.on('data', (d) =\u003e {\n        process.stdout.write(d);\n    });\n});  \nreq.write(data);\nreq.end();\n```\n\n#### PHP\n\n```php\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n    CURLOPT_URL           =\u003e 'http://\u003caddress\u003e:\u003cport\u003e/v1/sender/\u003ctoken\u003e',\n    CURLOPT_CUSTOMREQUEST =\u003e 'POST',\n    CURLOPT_POSTFIELDS    =\u003e [ 'text' =\u003e 'hello' ],\n]);\n\n$response = curl_exec($curl);\n\ncurl_close($curl);\necho $response;\n```\n\n## 开发者\n\n依赖第三方工具:\n\n- protobuf\n\n\n初始化项目依赖\n\n```bash\n$ pod install\n```\n\n可以使用下列命令给模拟器发送推送用于测试\n\n```bash\n$ ./send.swift text=hello\n```\n\n## 贡献\n\n贡献使开源社区成为了一个令人赞叹的学习，启发和创造场所。 **十分感谢**您做出的任何贡献。\n\n1. Fork本项目\n2. 创建您的Feature分支 (`git checkout -b feature/AmazingFeature`)\n3. 提交您的更改 (`git commit -m 'Add some AmazingFeature'`)\n4. 推送到分支 (`git push origin feature/AmazingFeature`)\n5. 开启一个Pull Request\n\n## 许可证\n\n根据MIT许可证分发，详情查看[`LICENSE`](LICENSE)。\n","funding_links":[],"categories":["Objective-C","Extension","Apple Watch"],"sub_categories":["Terminal"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanify%2Fchanify-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanify%2Fchanify-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanify%2Fchanify-ios/lists"}