You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BigDecimal id =4632; // BigDecimal | The recipe id.
81
+
String mask = ellipseMask; // String | The mask to put over the recipe image (\"ellipseMask\", \"diamondMask\", \"starMask\", \"heartMask\", \"potMask\", \"fishMask\").
82
+
String backgroundImage = background1; // String | The background image (\"none\",\"background1\", or \"background2\").
83
+
String backgroundColor = ffffff; // String | The background color for the recipe card as a hex-string.
84
+
String fontColor =333333; // String | The font color for the recipe card as a hex-string.
85
+
try {
86
+
Object result = apiInstance.createRecipeCardGet(id, mask, backgroundImage, backgroundColor, fontColor);
87
+
System.out.println(result);
88
+
} catch (ApiException e) {
89
+
System.err.println("Exception when calling DefaultApi#createRecipeCardGet");
**id** | **BigDecimal**| The recipe id. | [default to null]
100
+
**mask** | **String**| The mask to put over the recipe image (\"ellipseMask\", \"diamondMask\", \"starMask\", \"heartMask\", \"potMask\", \"fishMask\"). | [optional][default to null]
101
+
**backgroundImage** | **String**| The background image (\"none\",\"background1\", or \"background2\"). | [optional][default to null]
102
+
**backgroundColor** | **String**| The background color for the recipe card as a hex-string. | [optional][default to null]
103
+
**fontColor** | **String**| The font color for the recipe card as a hex-string. | [optional][default to null]
Copy file name to clipboardexpand all lines: android/src/main/java/com/spoonacular/DefaultApi.java
+139
Original file line number
Diff line number
Diff line change
@@ -197,6 +197,145 @@ public void onErrorResponse(VolleyError error) {
197
197
}
198
198
}
199
199
/**
200
+
* Create Recipe Card
201
+
* Generate a recipe card for a recipe.
202
+
* @param id The recipe id.
203
+
* @param mask The mask to put over the recipe image (\"ellipseMask\", \"diamondMask\", \"starMask\", \"heartMask\", \"potMask\", \"fishMask\").
204
+
* @param backgroundImage The background image (\"none\",\"background1\", or \"background2\").
205
+
* @param backgroundColor The background color for the recipe card as a hex-string.
206
+
* @param fontColor The font color for the recipe card as a hex-string.
* @param id The recipe id. * @param mask The mask to put over the recipe image (\"ellipseMask\", \"diamondMask\", \"starMask\", \"heartMask\", \"potMask\", \"fishMask\"). * @param backgroundImage The background image (\"none\",\"background1\", or \"background2\"). * @param backgroundColor The background color for the recipe card as a hex-string. * @param fontColor The font color for the recipe card as a hex-string.
Copy file name to clipboardexpand all lines: angular/com/spoonacular/default.service.ts
+88
Original file line number
Diff line number
Diff line change
@@ -185,6 +185,94 @@ export class DefaultService {
185
185
);
186
186
}
187
187
188
+
/**
189
+
* Create Recipe Card
190
+
* Generate a recipe card for a recipe.
191
+
* @param id The recipe id.
192
+
* @param mask The mask to put over the recipe image (\"ellipseMask\", \"diamondMask\", \"starMask\", \"heartMask\", \"potMask\", \"fishMask\").
193
+
* @param backgroundImage The background image (\"none\",\"background1\", or \"background2\").
194
+
* @param backgroundColor The background color for the recipe card as a hex-string.
195
+
* @param fontColor The font color for the recipe card as a hex-string.
196
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
197
+
* @param reportProgress flag to report request and response progress.
0 commit comments