Closed IanTDuncan closed 6 months ago
This will be a guide on how to install the Java SDK from Spoontacular into Android Studio as a library.
Originally this issue was for the Android SDK client, but it turned out that the client was out of date and thus not usable
Links:
Requirements:
cd your-file-path-here
mvn clean package
Expected Behavior: Perfect synchronization within the project Actual Behavior: Perfect synchronization within the project
import com.spoonacular.DefaultApi; import com.spoonacular.MealPlanningApi; import com.spoonacular.client.ApiException; import com.spoonacular.client.model.AnalyzeRecipeRequest; public class DefaultApiExample { public static void main(String[] args) { DefaultApi apiInstance = new DefaultApi(); AnalyzeRecipeRequest analyzeRecipeRequest = new AnalyzeRecipeRequest(); // AnalyzeRecipeRequest | Example request body. String language = "en"; // String | The input language, either \"en\" or \"de\". Boolean includeNutrition = false; // Boolean | Whether nutrition data should be added to correctly parsed ingredients. Boolean includeTaste = false; // Boolean | Whether taste data should be added to correctly parsed ingredients. try { Object result = apiInstance.analyzeRecipe(analyzeRecipeRequest, language, includeNutrition, includeTaste); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DefaultApi#analyzeRecipe"); e.printStackTrace(); } } }
Operating System: Windows 11 Kotlin Version: 1.5.21 Android Studio Iguana 2023.2.1 Android Gradle Plugin Version: 8.3.0 Gradle Version: 8.4
API - Spoontacular - SDK Import
Description:
This will be a guide on how to install the Java SDK from Spoontacular into Android Studio as a library.
Links:
Requirements:
Steps To Reproduce:
cd your-file-path-here
mvn clean package
this will generate .jar files within the folderExpected Vs. Actual Behavior:
Expected Behavior: Perfect synchronization within the project Actual Behavior: Perfect synchronization within the project
Code Snippets:
Environment Details:
Operating System: Windows 11 Kotlin Version: 1.5.21 Android Studio Iguana 2023.2.1 Android Gradle Plugin Version: 8.3.0 Gradle Version: 8.4
Current Status:
COMPLETED