### Go example for get course syllabus Source: https://docs.timeback.com/beta/api-reference/beyond-ai/powerpath/lesson-plans/get-course-syllabus Go example using net/http to GET the syllabus. Replace the URL placeholder and token before running. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/powerpath/syllabus/{courseSourcedId}" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go example for get all classes Source: https://docs.timeback.com/beta/api-reference/platform/classes/get-all-classes Uses net/http to create a GET request with the Authorization header and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://platform.dev.timeback.com/rostering/1.0/classes?limit=10&orderBy=ASC" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go: Get Resources for a Course Source: https://docs.timeback.com/beta/api-reference/beyond-ai/oneroster/resources-management/get-resources-for-a-course Go example to get resources for a course. Creates an HTTP GET request with an Authorization header and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/ims/oneroster/resources/v1p2/resources/courses/{courseSourcedId}/resources?limit=100" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go example to get a specific teacher Source: https://docs.timeback.com/beta/api-reference/beyond-ai/oneroster/teachers-management/get-a-specific-teacher Uses net/http to send a GET request and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/teachers/{sourcedId}" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go example to get feedback by lesson ID Source: https://docs.timeback.com/beta/api-reference/beyond-ai/qti/feedback/get-feedback-by-lesson-id Uses the net/http package to send a GET request to the QTI API. Prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://qti.alpha-1edtech.ai/api/lesson/{lessonId}" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Get All Documents - Request Examples Source: https://docs.timeback.com/beta/api-reference/platform/case/get-all-documents Example requests for the Get All Documents endpoint. Each snippet sends a GET request to the specified URL with an Authorization header using a bearer token. The response is printed or returned as a string. ```php "https://platform.dev.timeback.com/case/1.1/CFDocuments?limit=10", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer " ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://platform.dev.timeback.com/case/1.1/CFDocuments?limit=10" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` ```java HttpResponse response = Unirest.get("https://platform.dev.timeback.com/case/1.1/CFDocuments?limit=10") .header("Authorization", "Bearer ") .asString(); ``` ```ruby require 'uri' require 'net/http' url = URI("https://platform.dev.timeback.com/case/1.1/CFDocuments?limit=10") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` -------------------------------- ### Go example for get all courses Source: https://docs.timeback.com/beta/api-reference/platform/courses/get-all-courses Uses the net/http package to send a GET request with an Authorization header. Reads and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://platform.dev.timeback.com/rostering/1.0/courses?limit=10&orderBy=ASC" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### 200 response example for GET /applications/1.0 Source: https://docs.timeback.com/beta/api-reference/platform/applications/get-all-lti-applications Example 200 response body for the GET /applications/1.0 endpoint. Shows the structure of an application object and pagination fields. ```json { "applications": [ { "sourcedId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "active", "dateCreated": "2023-11-07T05:31:56Z", "dateLastModified": "2023-11-07T05:31:56Z", "applicationType": "learning_app", "name": "", "description": "", "isLtiCompliant": true, "isLtiV1P3Compliant": true, "isRecordingEnabled": true, "parentLinkLoginEnabled": true, "launchUrl": "", "deploymentId": "", "version": "", "domains": [ "" ], "wasteMeter": "on", "idling": "on", "proctoringMode": "on", "secondCameraEnforcement": "on", "logoUrl": "", "coverImageUrl": "", "metadata": {}, "idlingThreshold": 123, "landingUrl": "", "homepageUrl": "", "clientId": "", "fullDescription": "", "learningAppSpecification": "", "gradeRangeStart": 123, "gradeRangeEnd": 123, "languageSupport": [ "" ], "caliperSupport": "yes", "tags": [ "" ], "publisherName": "", "subjects": [ "" ] } ], "offset": 123, "limit": 123, "total": 123 } ``` -------------------------------- ### Ruby example for get course syllabus Source: https://docs.timeback.com/beta/api-reference/beyond-ai/powerpath/lesson-plans/get-course-syllabus Ruby example using Net::HTTP to GET the syllabus. Replace the URL placeholder and token before running. ```ruby require 'uri' require 'net/http' url = URI("https://api.alpha-1edtech.ai/powerpath/syllabus/{courseSourcedId}") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` -------------------------------- ### Go example for XP leaderboard Source: https://docs.timeback.com/beta/api-reference/beyond-ai/edubridge/analytics/get-xp-leaderboard-for-an-application Uses net/http to send a GET request with an Authorization header. Prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/edubridge/analytics/xp/leaderboard" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Java Unirest example for get course syllabus Source: https://docs.timeback.com/beta/api-reference/beyond-ai/powerpath/lesson-plans/get-course-syllabus Java example using Unirest to GET the syllabus. Replace the URL placeholder and token before running. ```java HttpResponse response = Unirest.get("https://api.alpha-1edtech.ai/powerpath/syllabus/{courseSourcedId}") .header("Authorization", "Bearer ") .asString(); ``` -------------------------------- ### Go example for GET /xp/1.0/users/{userId}/entries Source: https://docs.timeback.com/beta/api-reference/platform/xp/get-user-xp-ledger-entries Sends a GET request using the net/http package. Sets the Authorization header, reads the response body, and prints it. Ignores errors for practical brevity. ```Go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://platform.dev.timeback.com/xp/1.0/users/{userId}/entries?limit=10" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go example Source: https://docs.timeback.com/beta/api-reference/beyond-ai/case/learning-standards/get-all-items Send a GET request using the net/http package. Prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/ims/case/v1p1/CFItems" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### PHP cURL example for get course syllabus Source: https://docs.timeback.com/beta/api-reference/beyond-ai/powerpath/lesson-plans/get-course-syllabus PHP example using cURL to GET the syllabus. Replace the URL placeholder and token before running. ```php "https://api.alpha-1edtech.ai/powerpath/syllabus/{courseSourcedId}", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer " ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ``` -------------------------------- ### JavaScript fetch example for get course syllabus Source: https://docs.timeback.com/beta/api-reference/beyond-ai/powerpath/lesson-plans/get-course-syllabus JavaScript example using fetch to GET the syllabus. Replace the URL placeholder and token before running. ```javascript const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; fetch('https://api.alpha-1edtech.ai/powerpath/syllabus/{courseSourcedId}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err)); ``` -------------------------------- ### Go example using net/http Source: https://docs.timeback.com/beta/api-reference/platform/enrollments/get-all-enrollments Creates an HTTP GET request with the Authorization header, reads the response body, and prints it. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://platform.dev.timeback.com/rostering/1.0/enrollments?limit=10&orderBy=ASC" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### cURL example Source: https://docs.timeback.com/beta/api-reference/beyond-ai/case/learning-standards/get-all-items Send a GET request to retrieve all learning standard items. Requires an authorization token. ```bash curl --request GET \ --url https://api.alpha-1edtech.ai/ims/case/v1p1/CFItems \ --header 'Authorization: Bearer ' ``` -------------------------------- ### Python requests example for get course syllabus Source: https://docs.timeback.com/beta/api-reference/beyond-ai/powerpath/lesson-plans/get-course-syllabus Python example using the requests library to GET the syllabus. Replace the URL placeholder and token before running. ```python import requests url = "https://api.alpha-1edtech.ai/powerpath/syllabus/{courseSourcedId}" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.text) ``` -------------------------------- ### GET assessment-test questions (Go, Java, Ruby) Source: https://docs.timeback.com/beta/api-reference/beyond-ai/qti/assessment-test-management/get-all-assessment-items-referenced-by-an-assessment-test Send a GET request to the assessment-test questions endpoint with an OAuth2 bearer token. The Go example uses the standard library, the Java example uses Unirest, and the Ruby example uses Net::HTTP with SSL enabled. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://qti.alpha-1edtech.ai/api/assessment-tests/{identifier}/questions" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` ```java HttpResponse response = Unirest.get("https://qti.alpha-1edtech.ai/api/assessment-tests/{identifier}/questions") .header("Authorization", "Bearer ") .asString(); ``` ```ruby require 'uri' require 'net/http' url = URI("https://qti.alpha-1edtech.ai/api/assessment-tests/{identifier}/questions") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` -------------------------------- ### Create a lesson plan using Go Source: https://docs.timeback.com/beta/api-reference/beyond-ai/powerpath/lesson-plans/create-a-lesson-plan Use the net/http package to create a lesson plan. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/powerpath/lessonPlans/" payload := strings.NewReader("{\n \"courseId\": \"\",\n \"userId\": \"\",\n \"classId\": \"\"\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Java Unirest example for Get resolved student calendar availability Source: https://docs.timeback.com/beta/api-reference/beyond-ai/edubridge/calendar-days/get-resolved-student-calendar-availability Java example using Unirest to GET the resolved student calendar availability. Sets the Authorization header and returns the response as a string. ```java HttpResponse response = Unirest.get("https://api.alpha-1edtech.ai/calendar/orgs/{orgSourcedId}/students/{studentSourcedId}/availability") .header("Authorization", "Bearer ") .asString(); ``` -------------------------------- ### Go example for getting all metrics Source: https://docs.timeback.com/beta/api-reference/beyond-ai/edubridge/application-metrics/get-all-metrics-for-an-application Uses net/http to send a GET request with a Bearer token. Reads and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/edubridge/applicationMetrics/{applicationSourcedId}" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go example for get agents Source: https://docs.timeback.com/beta/api-reference/platform/users/get-agents-for-a-user Uses the net/http package to send a GET request with an Authorization header and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://platform.dev.timeback.com/rostering/1.0/users/{sourcedId}/agents" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go net/http example for Get resolved student calendar availability Source: https://docs.timeback.com/beta/api-reference/beyond-ai/edubridge/calendar-days/get-resolved-student-calendar-availability Go example using net/http to GET the resolved student calendar availability. Adds the Authorization header and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/calendar/orgs/{orgSourcedId}/students/{studentSourcedId}/availability" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### JavaScript fetch example for Get resolved student calendar availability Source: https://docs.timeback.com/beta/api-reference/beyond-ai/edubridge/calendar-days/get-resolved-student-calendar-availability JavaScript example using fetch to GET the resolved student calendar availability. Parses the JSON response and logs it, with error handling. ```javascript const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; fetch('https://api.alpha-1edtech.ai/calendar/orgs/{orgSourcedId}/students/{studentSourcedId}/availability', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err)); ``` -------------------------------- ### Go example for copying calendar days Source: https://docs.timeback.com/beta/api-reference/beyond-ai/edubridge/calendar-days/copy-one-orgs-calendar-days-into-another-org Go example using net/http to POST the copy request and print the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/calendar/orgs/{orgSourcedId}/days/copy-from" payload := strings.NewReader("{\n \"sourceOrgSourcedId\": \"\",\n \"startDate\": \"\",\n \"endDate\": \"\",\n \"redetectSession\": true\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go net/http example for access token Source: https://docs.timeback.com/beta/api-reference/platform/auth/request-an-access-token Go example using net/http to POST client credentials and print the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://platform.dev.timeback.com/auth/1.0/token" payload := strings.NewReader("grant_type=client_credentials&scope=%3Cstring%3E&authorization_details=%3Cstring%3E") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Basic ") req.Header.Add("Content-Type", "application/x-www-form-urlencoded") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### PHP: Get Resources for a Course Source: https://docs.timeback.com/beta/api-reference/beyond-ai/oneroster/resources-management/get-resources-for-a-course PHP cURL example to get resources for a course. Configures a GET request with an Authorization header and handles errors. ```php "https://api.alpha-1edtech.ai/ims/oneroster/resources/v1p2/resources/courses/{courseSourcedId}/resources?limit=100", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer " ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ``` -------------------------------- ### Python: Get Resources for a Course Source: https://docs.timeback.com/beta/api-reference/beyond-ai/oneroster/resources-management/get-resources-for-a-course Python requests example to get resources for a course. Sends a GET request with an Authorization header and prints the response. ```python import requests url = "https://api.alpha-1edtech.ai/ims/oneroster/resources/v1p2/resources/courses/{courseSourcedId}/resources?limit=100" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.text) ``` -------------------------------- ### Go example for fan-out Source: https://docs.timeback.com/beta/api-reference/beyond-ai/edubridge/calendar-days/copy-a-parent-orgs-calendar-into-all-its-active-children Uses the net/http package to send a POST request with a JSON string body. Prints the response body. ```go package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/calendar/orgs/{orgSourcedId}/days/fan-out" payload := strings.NewReader("{\n \"startDate\": \"\",\n \"endDate\": \"\",\n \"redetectSession\": true\n}") req, _ := http.NewRequest("POST", url, payload) req.Header.Add("Authorization", "Bearer ") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Install Timeback CLI with curl Source: https://docs.timeback.com/beta/build-on-timeback/cli/overview Installs the Timeback CLI by piping the installation script from timeback.dev directly into bash. Use this as the quickest setup method. ```bash curl -fsSL https://timeback.dev/cli | bash ``` -------------------------------- ### Go example to get all organizations Source: https://docs.timeback.com/beta/api-reference/beyond-ai/oneroster/organizations-management/get-all-organizations Uses the net/http package to send a GET request with a Bearer token and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/orgs/?limit=100" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### PHP cURL example for Get resolved student calendar availability Source: https://docs.timeback.com/beta/api-reference/beyond-ai/edubridge/calendar-days/get-resolved-student-calendar-availability PHP example using cURL to GET the resolved student calendar availability. Sets the Authorization header and outputs the response or a cURL error. ```php "https://api.alpha-1edtech.ai/calendar/orgs/{orgSourcedId}/students/{studentSourcedId}/availability", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer " ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ``` -------------------------------- ### Go request to list AP readiness goals Source: https://docs.timeback.com/beta/api-reference/beyond-ai/edubridge/ap-readiness/list-active-ap-readiness-goals-for-a-subject Go example using net/http to GET /ap-readiness/goals. Prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/ap-readiness/goals" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Python requests example for Get resolved student calendar availability Source: https://docs.timeback.com/beta/api-reference/beyond-ai/edubridge/calendar-days/get-resolved-student-calendar-availability Python example using the requests library to GET the resolved student calendar availability. Sets the Authorization header and prints the response text. ```python import requests url = "https://api.alpha-1edtech.ai/calendar/orgs/{orgSourcedId}/students/{studentSourcedId}/availability" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.text) ``` -------------------------------- ### Go example to get all students Source: https://docs.timeback.com/beta/api-reference/beyond-ai/oneroster/students-management/get-all-students Use this Go program to fetch all students. It creates an HTTP GET request with the authorization header and prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/ims/oneroster/rostering/v1p2/students/?limit=100" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Go GET CFDocuments Source: https://docs.timeback.com/beta/api-reference/beyond-ai/case/learning-standards/get-all-documents Go example using net/http to GET all CFDocuments. Prints the response body. ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://api.alpha-1edtech.ai/ims/case/v1p1/CFDocuments" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` -------------------------------- ### Search and filter assessment tests with GET request Source: https://docs.timeback.com/beta/api-reference/beyond-ai/qti/assessment-test-management/search-and-filter-assessment-tests These examples show how to call the assessment-tests endpoint with a GET request, including the Authorization header and query parameters for pagination and ordering. Replace with a valid bearer token. The PHP example prints the response or a cURL error; the Go example prints the response body; the Java example uses Unirest; the Ruby example uses Net::HTTP with SSL. ```php "https://qti.alpha-1edtech.ai/api/assessment-tests?page=1&limit=10&order=desc", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer " ], ]); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ``` ```go package main import ( "fmt" "net/http" "io" ) func main() { url := "https://qti.alpha-1edtech.ai/api/assessment-tests?page=1&limit=10&order=desc" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) } ``` ```java HttpResponse response = Unirest.get("https://qti.alpha-1edtech.ai/api/assessment-tests?page=1&limit=10&order=desc") .header("Authorization", "Bearer ") .asString(); ``` ```ruby require 'uri' require 'net/http' url = URI("https://qti.alpha-1edtech.ai/api/assessment-tests?page=1&limit=10&order=desc") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ```