{"id":20669682,"url":"https://github.com/fox-one/fox-notifier","last_synced_at":"2025-10-11T16:36:46.030Z","repository":{"id":97516624,"uuid":"213579823","full_name":"fox-one/fox-notifier","owner":"fox-one","description":null,"archived":false,"fork":false,"pushed_at":"2019-12-15T07:49:45.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-09T09:08:21.678Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fox-one.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-10-08T07:46:49.000Z","updated_at":"2019-12-15T07:49:47.000Z","dependencies_parsed_at":"2023-04-20T15:32:59.778Z","dependency_job_id":null,"html_url":"https://github.com/fox-one/fox-notifier","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/fox-one/fox-notifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffox-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffox-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffox-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffox-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fox-one","download_url":"https://codeload.github.com/fox-one/fox-notifier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fox-one%2Ffox-notifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274165723,"owners_count":25233949,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-16T20:15:34.845Z","updated_at":"2025-10-11T16:36:40.997Z","avatar_url":"https://github.com/fox-one.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fox-notifier\n\n## Notify Message\n\n```bash\nPOST /message\n```\n\n**Params:**\n\n```javascript\n{\n    \"message_id\": \"191b3672-1014-4f54-aeed-48caf0a8d0af\", // optional\n    \"topic\": \"test\", // required\n    \"message\": \"just a test\", // required\n}\n```\n\n**Response:**\n\n```javascript\n{\n  \"code\": 0,\n  \"data\": {\n    \"id\": 3,\n    \"topic\": \"test\",\n    \"conversation_id\": \"3fed03e2-9799-3cf1-9a11-c90574e99209\",\n    \"message_id\": \"191b3672-1014-4f54-aeed-48caf0a8d0af\",\n    \"message\": \"just a test\",\n    \"created_at\": \"2019-10-09T21:28:08.525309+08:00\",\n    \"updated_at\": \"2019-10-09T21:28:08.525309+08:00\"\n  }\n}\n```\n\n**Error Codes:**\n\n```go\nvar (\n    // ErrInvalidInput err invalid input\n    ErrInvalidInput = errors.New(1001, \"invalid input\")\n    // ErrServerFault err server fault\n    ErrServerFault = errors.New(1002, \"internal server error\", http.StatusInternalServerError)\n)\n```\n\n## SDK\n\nbelow is a demo\n\n```go\npackage main\n\nimport (\n  \"context\"\n  \"log\"\n\n  notifier \"github.com/fox-one/fox-notifier/sdk\"\n)\n\nfunc main() {\n  n := notifier.NewNotifier(\"http://localhost:8888\")\n  msg, err := n.NotifyMessage(context.TODO(), \"\", \"test\", \"test\")\n  log.Println(msg, err)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Ffox-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffox-one%2Ffox-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffox-one%2Ffox-notifier/lists"}