You are here

function opigno_lrs_stats_end_point in Opigno TinCan API 7

Get query end point using tincanapi "tincanapi_endpoint" setting

1 call to opigno_lrs_stats_end_point()
opigno_lrs_stats_query in modules/opigno_tincan_api_stats/includes/model/adapter.inc
Query Learning Record Store server using mongodb aggregate structure

File

modules/opigno_tincan_api_stats/includes/model/adapter.inc, line 11
Implements functions to query statements stored on Learning Record Store server

Code

function opigno_lrs_stats_end_point() {
  $end_point =& drupal_static(__FUNCTION__);
  if (!isset($end_point)) {
    $url_parts = parse_url(variable_get('opigno_tincan_api_endpoint'));
    $end_point = "{$url_parts['scheme']}://{$url_parts['host']}/api/v1/statements/aggregate";
  }
  return $end_point;
}