Package 'racademyocean'

Title: Client for 'AcademyOcean API'
Description: Provide function for work with 'AcademyOcean API' <https://academyocean.com/api>.
Authors: Alexey Seleznev [aut, cre] , Netpeak [cph], AcademyOcean [cph]
Maintainer: Alexey Seleznev <[email protected]>
License: MIT + file LICENSE
Version: 0.3.3
Built: 2025-02-04 04:39:35 UTC
Source: https://github.com/selesnow/racademyocean

Help Index


racademyocean: Client for 'AcademyOcean API'

Description

logo

Provide function for work with 'AcademyOcean API' https://academyocean.com/api.

Author(s)

Maintainer: Alexey Seleznev [email protected] (ORCID)

Other contributors:

  • Netpeak [copyright holder]

  • AcademyOcean [copyright holder]


Authorization in 'AcademyOcean'

Description

Authorization in 'AcademyOcean'

Usage

ao_auth(
  client_id = ao_get_client_id(),
  client_secret = ao_get_client_secret(),
  token_path = oa_get_token_path()
)

Arguments

client_id

ID of your App

client_secret

Secret of your app

token_path

Your directory for credential storage

Value

Auth object

See Also

See Documentation


Get the list of all academies. It returns the list of all academies in account with a description of them.

Description

Get the list of all academies. It returns the list of all academies in account with a description of them.

Usage

ao_get_academies()

Value

tibble with academies


This returns certificates received by learners

Description

This returns certificates received by learners

Usage

ao_get_certificates(emails, cl = NULL)

Arguments

emails

Search for a user by email

cl

A cluster object created by makeCluster, or an integer to indicate number of child-processes (integer values are ignored on Windows) for parallel evaluations (see Details on performance).

Value

tibble with certificates


This returns a learner’s progress in all active courses/groups.

Description

This returns a learner’s progress in all active courses/groups.

Usage

ao_get_course_progress(emails, cl = NULL)

Arguments

emails

Search for a users by emails

cl

A cluster object created by makeCluster, or an integer to indicate number of child-processes (integer values are ignored on Windows) for parallel evaluations (see Details on performance).

Value

tibble with course progress


This returns an array of learners from the Academy, or an empty array, if there is no data.

Description

This returns an array of learners from the Academy, or an empty array, if there is no data.

Usage

ao_get_leaners()

Value

tibble with leaners


This returns a breakdown of learners by country.

Description

This returns a breakdown of learners by country.

Usage

ao_get_leaners_amount_from_countries(country_iso_code = NULL)

Arguments

country_iso_code

Country iso code

Value

tibble with leaners geo

Examples

## Not run: 
leaners_stat <- ao_get_leaners_amount_from_countries(
    country_iso_code = "UA"
)

## End(Not run)

This returns a list of learners from the chosen country

Description

This returns a list of learners from the chosen country

Usage

ao_get_leaners_from_country(country_iso_code)

Arguments

country_iso_code

Country iso code

Value

tibble with leaners

Examples

## Not run: 
ua_leaners <- ao_get_leaners_from_country("UA")

## End(Not run)

This returns a learner’s progress in specified courses

Description

This returns a learner’s progress in specified courses

Usage

ao_get_leaners_progress_by_course(course_id, course_slug, cl = NULL)

Arguments

course_id

Course ID, you can get from course settings, from field “API, Course ID”

course_slug

Course slug, you can get from course settings, from field ‘course URL’

cl

A cluster object created by makeCluster, or an integer to indicate number of child-processes (integer values are ignored on Windows) for parallel evaluations (see Details on performance).

Value

When the request is executed, an array of learner’s information is returned


This returns an array of learners from the Academy, or an empty array, if there is no data.

Description

This returns an array of learners from the Academy, or an empty array, if there is no data.

Usage

ao_get_leaners_registered_at(
  date = Sys.Date() - 1,
  operator = c("=", ">", "<", ">=", "<=", "<>")
)

Arguments

date

Date string for filter

operator

One of the following comparison operators '=', '>', '<', '>=', '<=', '<>'

Value

tibble with leaners


This returns a list of learners filtered by their score

Description

This returns a list of learners filtered by their score

Usage

ao_get_leaners_with_score(
  score = 1,
  operator = c(">=", ">", "<", "=", "<=", "<>")
)

Arguments

score

Filter score the ratio of completed content to available content, across all courses/groups

operator

One of the following comparison operators '=', '>', '<', '>=', '<=', '<>'

Value

tibble with leaners

Examples

## Not run: 
leaners <- ao_get_leaners_with_score(
    score = 20,
    operator = '>'
)

## End(Not run)

This returns an array of learners who churned at a specific lesson in the course.

Description

This returns an array of learners who churned at a specific lesson in the course.

Usage

ao_get_learners_churn_at_content(course_id, content_id)

Arguments

course_id

Course id, you can get it from edit course, from field ‘course URL’

content_id

content id, you can get it from edit content, from field ‘lesson/quiz URL’

Value

tibble with leaners

Examples

## Not run: 
churn <- ao_get_learners_churn_at_content(
    course_id = 'ppc-spetsialist-free',
    content_id = 'itogovyy-test'
)

## End(Not run)

This returns a list of learners who have completed a given course.

Description

This returns a list of learners who have completed a given course.

Usage

ao_get_learners_course_complete(course_id = "GlnLgyVkeqaXkm09Q7Y4")

Arguments

course_id

Course id, you can get it from edit course, from field ‘course URL’

Value

tibble with leaners

Examples

## Not run: 
leaners <- ao_get_learners_course_complete(
    'ppc-spetsialist-free'
)

## End(Not run)

Returns statistics about the specified quiz for the specified learner(s).

Description

Returns statistics about the specified quiz for the specified learner(s).

Usage

ao_get_learners_quiz_statistic(email, content_id)

Arguments

email

Search for a users by emails

content_id

ID of the quiz you want to see statistics for

Value

tibble with quize stat

Examples

## Not run: 
quize_stat <- ao_get_learners_quiz_statistic(
    email = '[email protected]',
    content_id = 'R9eYq5oE6wLoY3NAPmwx'
)

## End(Not run)

This returns an array of learners who logged in to the Academy more than one time.

Description

This returns an array of learners who logged in to the Academy more than one time.

Usage

ao_get_learners_repeated_logins()

Value

tibble with leaners


This returns a list of learners who registered in an Academy but took no further actions (no lessons opened)

Description

This returns a list of learners who registered in an Academy but took no further actions (no lessons opened)

Usage

ao_get_passive_leaners()

Value

tibble with leaners


This returns a list of learners who registered in an Academy but took no further actions (no lessons opened)

Description

This returns a list of learners who registered in an Academy but took no further actions (no lessons opened)

Usage

ao_get_passive_learners()

Value

tibble with passive leaners

Examples

## Not run: 
passive <- ao_get_passive_learners()

## End(Not run)

Returns a list of all teams in the academy.

Description

Returns a list of all teams in the academy.

Usage

ao_get_teams()

Value

tibble with teams


Print method for academyocean_token

Description

Print method for academyocean_token

Usage

## S3 method for class 'academyocean_token'
print(x, ..., show_token = FALSE)

Arguments

x

Auth object

...

Using in default print()

show_token

Hide or shoh access token in console

Value

Using only for output token in console