{"id":16615395,"url":"https://github.com/kiambogo/scrava","last_synced_at":"2025-10-29T19:30:26.531Z","repository":{"id":20779070,"uuid":"24063984","full_name":"kiambogo/scrava","owner":"kiambogo","description":"A Scala client for the Strava API","archived":false,"fork":false,"pushed_at":"2021-03-03T07:34:08.000Z","size":138,"stargazers_count":20,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-02T04:24:40.590Z","etag":null,"topics":["lift-json","scala","scala-client","scalaj-http","strava","strava-api"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kiambogo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-15T16:29:27.000Z","updated_at":"2022-10-11T12:41:18.000Z","dependencies_parsed_at":"2022-07-22T08:01:55.511Z","dependency_job_id":null,"html_url":"https://github.com/kiambogo/scrava","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiambogo%2Fscrava","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiambogo%2Fscrava/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiambogo%2Fscrava/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiambogo%2Fscrava/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiambogo","download_url":"https://codeload.github.com/kiambogo/scrava/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238874417,"owners_count":19545186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lift-json","scala","scala-client","scalaj-http","strava","strava-api"],"created_at":"2024-10-12T02:09:21.100Z","updated_at":"2025-10-29T19:30:26.215Z","avatar_url":"https://github.com/kiambogo.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Scrava](https://cloud.githubusercontent.com/assets/4472397/6699144/9a4ee65c-ccd5-11e4-9369-e89eea337b17.jpg)\n\nA lightweight Scala client for the Strava API built upon ScalaJ-HTTP library and Lift JSON.\n\n[![Build Status](https://travis-ci.org/kiambogo/scrava.svg?branch=master)](https://travis-ci.org/kiambogo/scrava)\n[![GitHub version](https://badge.fury.io/gh/kiambogo%2Fscrava.svg)](https://badge.fury.io/gh/kiambogo%2Fscrava)\n\n### Installation\nScrava is currently built for Scala 2.11 and 2.12. To use scrava in an sbt project, add the following to your project file:\n\n    libraryDependencies += \"com.github.kiambogo\" %% \"scrava\" % \"1.3.0\"\n\n### Sample Code\n\n    val client = new ScravaClient(\"[accessToken]\")\n    val athlete = client.retrieveAthlete()\n\n**Note:** Most functions have optional ID parameters (i.e, `retrieveAthlete()`). If no ID is provided, the function will operate based on the currently authenticated user. Therefore, `retrieveAthlete()` will return the athlete profile of the currently authenticated user (based on the access token provided), and `listAthleteFriends()` will return the list of friends of the currently authenticated athlete.\n\nTo retrieve perform these functions for a particular athlete/activity/etc, simply pass in the respective ID: `retrieveAthlete(Some([athleteID]))` or `listAthleteFriends(Some([athleteID]))`.\n\n### Auto-Pagination\n\nThe Strava API offers the ability to page through result sets when the corresponding result set to a request is very large. Scrava offers the ability to perform auto-pagination, fetching the entire result set and merging into a single List. To utilize this, simply pass in `retrieveAll = true` into the respective function. Note that this will use additional requests to the API, and may exhaust rate limits in some cases.\n\n-----------------------------\n**Note:** The functions requiring Write permissions (`updateAthlete()`, `createActivity()`, `updateActivity()`, etc) are untested at this time.\n\nIf any errors or problems are found, feel free to open a pull request or issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiambogo%2Fscrava","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiambogo%2Fscrava","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiambogo%2Fscrava/lists"}