我使用php中的curl从
获取所有产品数据http://public.je-apis.com/swagger-ui/#!/menus
GET / menus / {menuId} / productcategories / {categoryId} / products
返回产品结果。
@keyframes changeColor {
0% {
color: yellow;
}
50% {
color: red;
}
}
@-moz-keyframes changeColor {
0% {
color: yellow;
}
50% {
color: red;
}
}
@-webkit-keyframes changeColor {
0% {
color: yellow;
}
50% {
color: red;
}
}
@-o-keyframes changeColor {
0%{
color: yellow;
}
50% {
color: red;
}
}
还有其他数据选项可供选择,如下所示,如招聘页面所示,我如何访问这些额外数据? I.E如果产品有餐选项,我该如何获得所述餐食选择。
JustEat.PublicApi.Site.ResponseData.ProductResult {
Id (integer, optional): Int32,
Name (string, optional): String,
Synonym (string, optional): String,
Description (string, optional): String,
RestaurantMenuNumber (integer, optional): Int32,
RestaurantMenuNumberCode (string, optional): String,
Price (System.Decimal, optional): Decimal,
HasComboOptions (boolean, optional): Boolean,
HasAccessories (boolean, optional): Boolean,
HasRequiredAccessories (boolean, optional): Boolean,
ComboOptions (array[JustEat.PublicApi.Site.ResponseData.MealOptionResult],
optional): IEnumerable[JustEat.PublicApi.Site.ResponseData.MealOptionResult],
Accessories (array[JustEat.Core.Model.ProductAccessory], optional):
IEnumerable[JustEat.Core.Model.ProductAccessory],
ContainsNuts (boolean, optional): Boolean,
IsVegetarian (boolean, optional): Boolean,
IsSpicy (boolean, optional): Boolean,
IsTips (boolean, optional): Boolean,
RequireOtherProducts (boolean, optional): Boolean
}