Title: | Client for 'AcademyOcean API' |
---|---|
Description: | Provide function for work with 'AcademyOcean API' <https://academyocean.com/api>. |
Authors: | Alexey Seleznev [aut, cre] |
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 |
Provide function for work with 'AcademyOcean API' https://academyocean.com/api.
Maintainer: Alexey Seleznev [email protected] (ORCID)
Other contributors:
Netpeak [copyright holder]
AcademyOcean [copyright holder]
Authorization in 'AcademyOcean'
ao_auth( client_id = ao_get_client_id(), client_secret = ao_get_client_secret(), token_path = oa_get_token_path() )
ao_auth( client_id = ao_get_client_id(), client_secret = ao_get_client_secret(), token_path = oa_get_token_path() )
client_id |
ID of your App |
client_secret |
Secret of your app |
token_path |
Your directory for credential storage |
Auth object
See Documentation
Get the list of all academies. It returns the list of all academies in account with a description of them.
ao_get_academies()
ao_get_academies()
tibble with academies
This returns certificates received by learners
ao_get_certificates(emails, cl = NULL)
ao_get_certificates(emails, cl = NULL)
emails |
Search for a user by email |
cl |
A cluster object created by |
tibble with certificates
This returns a learner’s progress in all active courses/groups.
ao_get_course_progress(emails, cl = NULL)
ao_get_course_progress(emails, cl = NULL)
emails |
Search for a users by emails |
cl |
A cluster object created by |
tibble with course progress
This returns an array of learners from the Academy, or an empty array, if there is no data.
ao_get_leaners()
ao_get_leaners()
tibble with leaners
This returns a breakdown of learners by country.
ao_get_leaners_amount_from_countries(country_iso_code = NULL)
ao_get_leaners_amount_from_countries(country_iso_code = NULL)
country_iso_code |
Country iso code |
tibble with leaners geo
## Not run: leaners_stat <- ao_get_leaners_amount_from_countries( country_iso_code = "UA" ) ## End(Not run)
## 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
ao_get_leaners_from_country(country_iso_code)
ao_get_leaners_from_country(country_iso_code)
country_iso_code |
Country iso code |
tibble with leaners
## Not run: ua_leaners <- ao_get_leaners_from_country("UA") ## End(Not run)
## Not run: ua_leaners <- ao_get_leaners_from_country("UA") ## End(Not run)
This returns a learner’s progress in specified courses
ao_get_leaners_progress_by_course(course_id, course_slug, cl = NULL)
ao_get_leaners_progress_by_course(course_id, course_slug, cl = NULL)
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 |
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.
ao_get_leaners_registered_at( date = Sys.Date() - 1, operator = c("=", ">", "<", ">=", "<=", "<>") )
ao_get_leaners_registered_at( date = Sys.Date() - 1, operator = c("=", ">", "<", ">=", "<=", "<>") )
date |
Date string for filter |
operator |
One of the following comparison operators '=', '>', '<', '>=', '<=', '<>' |
tibble with leaners
This returns a list of learners filtered by their score
ao_get_leaners_with_score( score = 1, operator = c(">=", ">", "<", "=", "<=", "<>") )
ao_get_leaners_with_score( score = 1, operator = c(">=", ">", "<", "=", "<=", "<>") )
score |
Filter score the ratio of completed content to available content, across all courses/groups |
operator |
One of the following comparison operators '=', '>', '<', '>=', '<=', '<>' |
tibble with leaners
## Not run: leaners <- ao_get_leaners_with_score( score = 20, operator = '>' ) ## End(Not run)
## 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.
ao_get_learners_churn_at_content(course_id, content_id)
ao_get_learners_churn_at_content(course_id, content_id)
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’ |
tibble with leaners
## Not run: churn <- ao_get_learners_churn_at_content( course_id = 'ppc-spetsialist-free', content_id = 'itogovyy-test' ) ## End(Not run)
## 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.
ao_get_learners_course_complete(course_id = "GlnLgyVkeqaXkm09Q7Y4")
ao_get_learners_course_complete(course_id = "GlnLgyVkeqaXkm09Q7Y4")
course_id |
Course id, you can get it from edit course, from field ‘course URL’ |
tibble with leaners
## Not run: leaners <- ao_get_learners_course_complete( 'ppc-spetsialist-free' ) ## End(Not run)
## 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).
ao_get_learners_quiz_statistic(email, content_id)
ao_get_learners_quiz_statistic(email, content_id)
email |
Search for a users by emails |
content_id |
ID of the quiz you want to see statistics for |
tibble with quize stat
## Not run: quize_stat <- ao_get_learners_quiz_statistic( email = '[email protected]', content_id = 'R9eYq5oE6wLoY3NAPmwx' ) ## End(Not run)
## 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.
ao_get_learners_repeated_logins()
ao_get_learners_repeated_logins()
tibble with leaners
This returns a list of learners who registered in an Academy but took no further actions (no lessons opened)
ao_get_passive_leaners()
ao_get_passive_leaners()
tibble with leaners
This returns a list of learners who registered in an Academy but took no further actions (no lessons opened)
ao_get_passive_learners()
ao_get_passive_learners()
tibble with passive leaners
## Not run: passive <- ao_get_passive_learners() ## End(Not run)
## Not run: passive <- ao_get_passive_learners() ## End(Not run)
Returns a list of all teams in the academy.
ao_get_teams()
ao_get_teams()
tibble with teams
Print method for academyocean_token
## S3 method for class 'academyocean_token' print(x, ..., show_token = FALSE)
## S3 method for class 'academyocean_token' print(x, ..., show_token = FALSE)
x |
Auth object |
... |
Using in default print() |
show_token |
Hide or shoh access token in console |
Using only for output token in console