{"id":18454336,"url":"https://github.com/1password/events-api-generic","last_synced_at":"2025-04-08T03:35:58.852Z","repository":{"id":40249418,"uuid":"385725895","full_name":"1Password/events-api-generic","owner":"1Password","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-22T16:40:30.000Z","size":21,"stargazers_count":14,"open_issues_count":1,"forks_count":4,"subscribers_count":11,"default_branch":"main","last_synced_at":"2024-06-21T18:15:12.059Z","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/1Password.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":"2021-07-13T20:20:17.000Z","updated_at":"2024-04-07T23:06:00.000Z","dependencies_parsed_at":"2024-03-22T17:55:41.215Z","dependency_job_id":"59bd909e-bdd2-4a04-904a-0ab668ed99b1","html_url":"https://github.com/1Password/events-api-generic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fevents-api-generic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fevents-api-generic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fevents-api-generic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Fevents-api-generic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1Password","download_url":"https://codeload.github.com/1Password/events-api-generic/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223303757,"owners_count":17123097,"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-06T08:03:50.198Z","updated_at":"2024-11-06T08:03:50.706Z","avatar_url":"https://github.com/1Password.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 1Password Events API Generic Scripts\n\nThis repository contains scripts in several languages to get started with the Events API.\n\nAll scripts use the `EVENTS_API_TOKEN` environment variable to load your API token. You should use [`op run`](https://developer.1password.com/docs/cli/reference/commands/run) and [secret references](https://developer.1password.com/docs/cli/secrets-reference-syntax/) provided by the [1Password CLI](https://developer.1password.com/docs/cli) to securely load environment variables.\n\n**Example 1** - using an `.env` file, running the PHP script:\n\n```shell\nop run --env-file .env -- php eventsapi.php\n```\n\n**Example 2** - providing variables inline, running the Go script:\n\n```shell\nEVENTS_API_TOKEN=\"op://Vault/Item/token\" op run -- go run eventsapi.go\n```\n\nYou can generate an API bearer token [on 1Password.com](https://support.1password.com/events-reporting/#appendix-issue-or-revoke-bearer-tokens) or with the [CLI](https://developer.1password.com/docs/cli/reference/management-commands/events-api#events-api-create).\n\nThe script will print up to 20 audit events, sign-in attempts, or item usages from the last 24 hours.\n\nLearn more about how to [get started with 1Password Events Reporting](https://support.1password.com/events-reporting/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1password%2Fevents-api-generic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1password%2Fevents-api-generic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1password%2Fevents-api-generic/lists"}