Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.
/ ebikeconnect-api Public archive

JAX-RS client implementation for accessing ebike-connect services.

Notifications You must be signed in to change notification settings

cgiesche/ebikeconnect-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Maven Central Dependency Status

JAX-RS client implementation for accessing Bosch ebike-connect webservices.

This library allows you to (read-only) access Bosch ebike-connect HTTP services. It is currently in an early development state and therefore to be considered as experimental and incomplete.

If you are still brave enough to give it a try, here is how:

// Create new service instance. It ist STATEFUL! Be sure to keep this instance.
EbikeConnectService service = new EbikeConnectService();

// Login: Throws LoginFailedException or returns response that contains user details.
EBCLoginResponse loginResponse = service.login("username", "p455w0rd");

// Retrieve header information about all recorded activities
EBCActivityHeadersResponse activities = service.getAllActivityHeaders();

// Retrieve details about a single activity. The startTime seems to be a kind of primary key for activities...
EBCActivityDetailsResponse actitiy = service.getActivityDetails(activities.get(0).getStartTime());

// Retrieve raw data of a single activity. Again, startTime is the "id"...
EBCRawActivityResponse rawActitiy = service.getRawActivity(activities.get(0).getStartTime());

// Finally log out
service.logout();

About

JAX-RS client implementation for accessing ebike-connect services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages