Skip to content

PHP library to access API data from chefkoch.de

License

Notifications You must be signed in to change notification settings

MaikNeubert/chefkoch-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chefkoch.de API


PHP library to access API data from chefkoch.de


Get started

<?php
use chefkoch\ChefkochFactory;

$chefkochFactory = new ChefkochFactory();
$apiClient = $chefkochFactory->createApiClient();

$user = $apiClient->getUserById("INPUT_USER_ID");
$simpleRecipes = $apiClient->getRecipes("OFFSET");
$categories = $apiClient->getCateogries();
$recipe = $apiClient->getRecipeById("RECIPE_ID");

Data

Accessible data from the API

User

  • id type: string
  • username type: string
  • rank type: integer
  • hasAvatar type: boolean
  • hasPaid type: boolean
  • deleted type: boolean

SimpleRecipe (for requests to get a list of recipes)

  • id type: string
  • type type: int
  • title type: string
  • subtitle type: string
  • owner type: array
  • rating type: array
  • difficulty type: int
  • hasImage type: bool
  • hasVideo type: bool
  • previewImageId type: ?string
  • preparationTime type: int
  • isSubmitted type: bool
  • isRejected type: bool
  • imageCount type: int
  • createdAt type: DateTime
  • editor type ?string
  • submissionDate type: ?DateTime
  • isPremium type: bool
  • status type: int
  • siteUrl type: string

Recipe

  • id type: string
  • type type: int
  • title type: string
  • subtitle type: string
  • owner type: array
  • rating type: array
  • difficulty type: int
  • hasImage type: bool
  • hasVideo type: bool
  • previewImageId type: string
  • preparationTime type: int
  • isSubmitted type: bool
  • isRejected type: bool
  • createdAt type: DateTime
  • imageCount type: int
  • editor type: ?array
  • submissionDate type: ?DateTime
  • isPremium type: bool
  • status type: int
  • servings type: int
  • kCalories type: int
  • instruction type: string
  • miscellaneousText type: string
  • ingredientsText type: string
  • tags type: array
  • fullTags type: array
  • viewCount type: int
  • cookingTime type: int
  • restingTime type: int
  • totalTime type: int
  • ingredientsGroups type: array
  • categoryIds type: array
  • recipeVideoId type: string
  • isIndexable type: bool
  • siteUrl type: string

Category

  • id type: string,
  • title type: string,
  • parentId type: ?string,
  • level type: int,
  • descriptionText, type: string,
  • linkName, type: string

About

PHP library to access API data from chefkoch.de

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%