Package 'briqr'

Title: Interface to the 'Briq' API
Description: An interface to the 'Briq' API <https://briq.github.io>. 'Briq' is a tool that aims to promote employee engagement by helping employees recognize and reward each other. Employees can praise and thank one another (for achieving a company goal, for example) by giving virtual credits (known as 'briqs' or 'bqs') that can be redeemed for various rewards. The 'Briq' API lets you create, read, update and delete users, user groups, transactions and messages. This package provides functions that simplify getting the users, user groups and transactions of your organization into R.
Authors: David Rubinger [aut, cre]
Maintainer: David Rubinger <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0.9000
Built: 2025-02-21 03:29:14 UTC
Source: https://github.com/davidrubinger/briqr

Help Index


Briq user groups

Description

List all the 'Briq' user groups of your organization

Usage

bq_groups(organization = Sys.getenv("organization_name"),
  api_token = Sys.getenv("briq_api_token"))

Arguments

organization

Name of your Briq organization

api_token

Briq API token

Value

Returns a tibble of Briq user groups of your organization

Examples

## Not run: 
# Read organization and api_token from .Renviron file
bq_groups()

# Manually enter in organization and api_token
bq_groups(organization = "My Org", api_token = "xYz123")

## End(Not run)

Revert Briq transaction

Description

Revert a 'Briq' transaction

Usage

bq_revert_transaction(transaction_id,
  organization = Sys.getenv("organization_name"),
  api_token = Sys.getenv("briq_api_token"))

Arguments

transaction_id

ID of transaction to revert

organization

Name of your Briq organization

api_token

Briq API token

Examples

## Not run: 
# Read organization and api_token from .Renviron file
bq_revert_transaction(transaction_id = "a1b-2c3")

# Manually enter in organization and api_token
bq_revert_transaction(
    transaction_id = "a1b-2c3", organization = "My Org", api_token = "xYz123"
)

## End(Not run)

Briq transactions

Description

List all the 'Briq' transactions of your organization

Usage

bq_transactions(max_results_per_page = 100, pause_between_pages = 0,
  organization = Sys.getenv("organization_name"),
  api_token = Sys.getenv("briq_api_token"))

Arguments

max_results_per_page

Maximum number of results per page

pause_between_pages

Number of seconds to wait between page requests

organization

Name of your Briq organization

api_token

Briq API token

Value

Returns a tibble of Briq transactions of your organization

Examples

## Not run: 
# Read organization and api_token from .Renviron file
bq_transactions()

# Manually enter in organization and api_token
bq_transactions(organization = "My Org", api_token = "xYz123")

## End(Not run)

Briq users

Description

List all the 'Briq' users of your organization

Usage

bq_users(organization = Sys.getenv("organization_name"),
  api_token = Sys.getenv("briq_api_token"))

Arguments

organization

Name of your Briq organization

api_token

Briq API token

Value

Returns a tibble of Briq users of your organization

Examples

## Not run: 
# Read organization and api_token from .Renviron file
bq_users()

# Manually enter in organization and api_token
bq_users(organization = "My Org", api_token = "xYz123")

## End(Not run)