{"id":19664139,"url":"https://github.com/bhanurp/status-page","last_synced_at":"2026-06-09T04:33:15.144Z","repository":{"id":237486705,"uuid":"782895755","full_name":"bhanurp/status-page","owner":"bhanurp","description":"go http wrapper for atlassian Status Page","archived":false,"fork":false,"pushed_at":"2024-10-07T16:14:12.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T03:49:46.879Z","etag":null,"topics":["atlassian","client","go","http-client","page","status","status-page","status-pages","statuspage"],"latest_commit_sha":null,"homepage":"","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/bhanurp.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":"2024-04-06T10:54:11.000Z","updated_at":"2024-10-07T16:14:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"3f42224a-e746-4543-91d3-bcadd8d15082","html_url":"https://github.com/bhanurp/status-page","commit_stats":null,"previous_names":["bhanurp/status-page","bhanurp/go-status-page"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bhanurp/status-page","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhanurp%2Fstatus-page","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhanurp%2Fstatus-page/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhanurp%2Fstatus-page/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhanurp%2Fstatus-page/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bhanurp","download_url":"https://codeload.github.com/bhanurp/status-page/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhanurp%2Fstatus-page/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34092260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":["atlassian","client","go","http-client","page","status","status-page","status-pages","statuspage"],"created_at":"2024-11-11T16:16:43.983Z","updated_at":"2026-06-09T04:33:15.140Z","avatar_url":"https://github.com/bhanurp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Status Page\n\n![Build Status](https://github.com/bhanurp/status-page/actions/workflows/go.yml/badge.svg)\n![Test Status](https://github.com/bhanurp/status-page/actions/workflows/tests.yml/badge.svg)\n\nThis repository contains the code for the status page http go client, which allows for the creation, updating, and deletion of incidents.\n\n## Overview\n\nThe `status-page` provides an API for managing incidents on a status page. It includes functionality for\n  - creating incidents\n  - updating incidents\n  - deleting incidents\n  - fetching all incidents\n\n## Setup\n\n### Prerequisites\n\n- Go 1.23 or higher\n- Environment variables:\n  - `STATUS_PAGE_BEARER_TOKEN`: Your API key for authentication\n  - `STATUS_PAGE_ID`: The ID of your status page\n  - `STATUS_PAGE_COMPONENT_ID`: The ID of your status page component\n\n### Installation\n\n1. Clone the repository:\n\n    ```sh\n    git clone https://github.com/bhanurp/status-page.git\n    cd status-page\n    ```\n\n2. Install Dependencies\n\n    ```sh\n    go mod tidy\n    ```\n\n3. Running Tests\n\n  To run the tests, ensure that the necessary environment variables are set and use the following command:\n    ```sh\n    go test -v ./...\n    ```\n\n### Usage\n#### Creating an Incident\n\nTo create an incident, use the CreateIncident function from the incident package. Here is an example:\n\n```go\npackage main\n\nimport (\n    \"log\"\n    \"os\"\n\n    \"github.com/bhanurp/status-page/incident\"\n)\n\nfunc main() {\n    apiKey := os.Getenv(\"STATUS_PAGE_BEARER_TOKEN\")\n    statusPageID := os.Getenv(\"STATUS_PAGE_ID\")\n    statusPageComponentID := os.Getenv(\"STATUS_PAGE_COMPONENT_ID\")\n\n    client := incident.NewClient(apiKey, statusPageComponentID, statusPageID)\n    incident := incident.Incident{\n        Name:   \"Test Incident\",\n        Status: \"investigating\",\n    }\n\n    createdIncident, err := client.CreateIncident(incident)\n    if err != nil {\n        log.Fatalf(\"Failed to create incident: %v\", err)\n    }\n\n    log.Printf(\"Created incident: %v\", createdIncident)\n}\n```\n\n#### Updating an Incident\n\nTo update an incident, use the UpdateIncident function from the incident package. Here is an example:\n\n```go\npackage main\n\nimport (\n    \"log\"\n    \"os\"\n\n    \"github.com/bhanurp/status-page/incident\"\n)\n\nfunc main() {\n    apiKey := os.Getenv(\"STATUS_PAGE_BEARER_TOKEN\")\n    statusPageID := os.Getenv(\"STATUS_PAGE_ID\")\n    statusPageComponentID := os.Getenv(\"STATUS_PAGE_COMPONENT_ID\")\n\n    client := incident.NewClient(apiKey, statusPageComponentID, statusPageID)\n    incidentID := \"incident_id_here\"\n    updatedIncident := incident.Incident{\n        ID:     incidentID,\n        Name:   \"Updated Test Incident\",\n        Status: \"resolved\",\n    }\n\n    err := client.UpdateIncident(incidentID, updatedIncident)\n    if err != nil {\n        log.Fatalf(\"Failed to update incident: %v\", err)\n    }\n\n    log.Printf(\"Updated incident: %v\", updatedIncident)\n}\n```\n\n#### Deleting an Incident\n\nTo delete an incident, use the DeleteIncident function from the incident package. Here is an example:\n\n```go\npackage main\n\nimport (\n    \"log\"\n    \"os\"\n\n    \"github.com/bhanurp/status-page/incident\"\n)\n\nfunc main() {\n    apiKey := os.Getenv(\"STATUS_PAGE_BEARER_TOKEN\")\n    statusPageID := os.Getenv(\"STATUS_PAGE_ID\")\n    statusPageComponentID := os.Getenv(\"STATUS_PAGE_COMPONENT_ID\")\n\n    client := incident.NewClient(apiKey, statusPageComponentID, statusPageID)\n    incidentID := \"incident_id_here\"\n\n    err := client.DeleteIncident(incidentID)\n    if err != nil {\n        log.Fatalf(\"Failed to delete incident: %v\", err)\n    }\n\n    log.Println(\"Deleted incident successfully\")\n}\n```\n\n### Contributing\nWe welcome contributions! Please see CONTRIBUTING.md for details on how to contribute to this project.\n\n### License\nThis project is licensed under the MIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhanurp%2Fstatus-page","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhanurp%2Fstatus-page","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhanurp%2Fstatus-page/lists"}