he "import com.strava.api.v3.*" into my code. Where I'm at it says "cannot resolve symbol 'strava'". I've downloaded and installed swagger-codegen just as the api documentation prescribes. I've done all the steps to run swagger and generate the API and I've got the file structure with folders "api", "auth", "model", and a variety of API-related .java files, as well as more API-related .java files within the three folders. I'm just not sure where to put these/what to do with them so that I can use the import statement and include them in my project? All the tutorials I've seen about installing APIs imply that I need a .jar file but following the instructions that Strava gave I only ended up with .java files.Has anyone gone through this process and knows where I'm going wrong?Many thanks!Hello,
You need to compile your Java files.
Ronan
--
You received this message because you are subscribed to the Google Groups "Strava API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to strava-api+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi George,
I don't have a tutorial link to share. All I can say is starting an app with Stava API is done in 3 steps :
1. Generating a Strava API Client with Swagger Codegen
swagger-codegen generate -i https://developers.strava.com/swagger/swagger.json -l java -o strava-api-client
You may want to use other options.
2. Packaging the API client (with Maven or Gradle)
mvn package in the directory generated during the first step.
Be careful, you'll probably have to had 1 dependency or more.
3. Adding the Strava API Client JAR to the dependencies of your project (probably with Gradle if you work on an Android app)
I hope it'll help you starting your project.
You don't share anything publicly yet. I'm working on a web app automaticly generating routes using segments for MTB or road bike.
Cheers,
Ronan