{"id":17274385,"url":"https://github.com/new-dev0/switch-post-action","last_synced_at":"2025-03-26T13:41:17.730Z","repository":{"id":255857320,"uuid":"684752396","full_name":"New-dev0/switch-post-action","owner":"New-dev0","description":"GitHub Workflow to send messages or files on Switch.","archived":false,"fork":false,"pushed_at":"2024-09-07T13:15:29.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T09:57:49.859Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/New-dev0.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":"2023-08-29T19:29:13.000Z","updated_at":"2024-09-07T13:15:32.000Z","dependencies_parsed_at":"2024-09-07T14:39:38.674Z","dependency_job_id":"79560a89-ed38-4a86-bace-ad6e2abcc05f","html_url":"https://github.com/New-dev0/switch-post-action","commit_stats":null,"previous_names":["new-dev0/switch-post-action"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/New-dev0%2Fswitch-post-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/New-dev0%2Fswitch-post-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/New-dev0%2Fswitch-post-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/New-dev0%2Fswitch-post-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/New-dev0","download_url":"https://codeload.github.com/New-dev0/switch-post-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245665722,"owners_count":20652651,"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-10-15T08:53:48.563Z","updated_at":"2025-03-26T13:41:17.705Z","avatar_url":"https://github.com/New-dev0.png","language":"Python","readme":"# New-dev0/switch-post-action@v1\n\nThis action allows you to send messages to a Switch community, group, or user using the Switch API.\n\n## Inputs\n\n| Name | Description | Required |\n|------|-------------|----------|\n| `token` | Switch's bot token | Yes |\n| `message` | Message text to send | No |\n| `document` | Path to file to send as document | No |\n| `description` | Description for the document | No |\n| `thumb` | Path to thumbnail image | No |\n| `channel_id` | Switch channel ID (requires `community_id`) | No |\n| `group_id` | Switch group ID (requires `community_id`) | No |\n| `community_id` | Switch community ID | No |\n| `user_id` | Switch user ID for direct messages | No |\n| `button_text` | Text to display on the button | No |\n| `button_url` | URL to open when the button is clicked | No |\n\n## Usage\n\n### Basic Example: Send a text message to a user\n\n```yaml\n- name: Send a text message to a user\n  uses: New-dev0/switch-post-action@v1\n  with:\n    token: ${{ secrets.SWITCH_BOT_TOKEN }}\n    message: \"Hello, this is a test message!\"\n    user_id: 1234\n```\n\n### Send a document to a channel in a community\n```yaml\n- name: Send a document to a channel in a community\n  uses: New-dev0/switch-post-action@v1\n  with:\n    token: ${{ secrets.SWITCH_BOT_TOKEN }}\n    message: \"Hello, this is a test message!\"\n    document: \"path/to/document.pdf\"\n    community_id: \"123456\"\n    channel_id: \"789012\"\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnew-dev0%2Fswitch-post-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnew-dev0%2Fswitch-post-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnew-dev0%2Fswitch-post-action/lists"}