UPMealAPI Class Reference
| Inherits from | NSObject |
| Declared in | UPMealAPI.h UPMealAPI.m |
Class Methods
deleteMeal:completion:
Delete a meal event that’s currently on the user’s timeline.
+ (void)deleteMeal:(UPMeal *)meal completion:(UPBaseEventAPICompletion)completionParameters
- meal
New meal event.
- completion
Block to be executed upon completion. The block is passed a result array.
Discussion
Delete a meal event that’s currently on the user’s timeline.
Declared In
UPMealAPI.hgetMealDetails:completion:
Request details about a meal event on the currently authenticated user’s feed.
+ (void)getMealDetails:(UPMeal *)meal completion:(UPMealAPICompletion)completionParameters
- meal
New meal event.
- completion
Block to be executed upon completion. The block is passed a result array.
Discussion
Request details about a meal event on the currently authenticated user’s feed.
Declared In
UPMealAPI.hgetMealsFromStartDate:toEndDate:completion:
Request meal events between two points in time for the currently authenticated user.
+ (void)getMealsFromStartDate:(NSDate *)startDate toEndDate:(NSDate *)endDate completion:(UPBaseEventAPIArrayCompletion)completionParameters
- completion
Block to be executed upon completion. The block is passed a result array.
Discussion
Request meal events between two points in time for the currently authenticated user.
@param startDate @param endDate
Declared In
UPMealAPI.hgetMealsWithLimit:completion:
Request most recent meal events for the currently authenticated user. The request is made asynchronously.
+ (void)getMealsWithLimit:(NSUInteger)limit completion:(UPBaseEventAPIArrayCompletion)completionParameters
- limit
Maximum number of meals to be retrieved.
- completion
Block to be executed upon completion. The block is passed a result array.
Discussion
Request most recent meal events for the currently authenticated user. The request is made asynchronously.
Declared In
UPMealAPI.hpostMeal:completion:
Post a meal event to the feed of the currently authenticated user.
+ (void)postMeal:(UPMeal *)meal completion:(UPMealAPICompletion)completionParameters
- meal
New meal event.
- completion
Block to be executed upon completion. The block is passed a result array.
Discussion
Post a meal event to the feed of the currently authenticated user.
Declared In
UPMealAPI.h