KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
events-api-generic
★ 17
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
Sillybutts
:
Config files for my GitHub profile.
crasher-cpp-client
:
C++ client library for Crasher dump/crash server
Data-Structures-and-Algorithms-with-Python
:
This repo contains various data structures and algorithms problems solved using Python
dagio
:
A python package for running directed acyclic graphs of asynchronous I/O operations
Win11RCT
:
Windows 11 Requirements Check Tool
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
events-api-generic
?
Download (.md)
# 1Password Events API Generic Scripts This repository contains scripts in several languages to get started with the Events API. All 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. *Use of the 1Password APIs and services accessed through this project is governed by the [1Password API Terms of Service](https://1password.com/legal/api-sdk-terms-of-service).* **Example 1** - using an `.env` file, running the PHP script: ```shell op run --env-file .env -- php eventsapi.php ``` **Example 2** - providing variables inline, running the Go script: ```shell EVENTS_API_TOKEN="op://Vault/Item/token" op run -- go run eventsapi.go ``` You 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). The script will print up to 20 audit events, sign-in attempts, or item usages from the last 24 hours. Learn more about how to [get started with 1Password Events Reporting](https://support.1password.com/events-reporting/).