Inherits from NSObject
Declared in UPMoveAPI.h
UPMoveAPI.m

Overview

Provides an interface for interacting with the user’s move events.

Class Methods

getMoveGraphImage:completion:

Request a graph image for a sleep event.

+ (void)getMoveGraphImage:(UPMove *)move completion:(UPBaseEventAPIImageCompletion)completion

Parameters

move

The move event to request the graph image for. The event must be visible to the user.

completion

Block to be executed upon completion. The block is passed the graph image.

Discussion

Request a graph image for a sleep event.

Declared In

UPMoveAPI.h

getMoveTicks:completion:

Requests individual ticks in the move. Ticks have finer grain detail about the move.

+ (void)getMoveTicks:(UPMove *)move completion:(UPBaseEventAPIArrayCompletion)completion

Parameters

move

The move event to request the ticks for.

completion

Block to be executed upon completion. The block is passed the ticks array or any error information.

Discussion

Requests individual ticks in the move. Ticks have finer grain detail about the move.

Declared In

UPMoveAPI.h

getMovesFromStartDate:toEndDate:completion:

Request move events between two points in time for the currently authenticated user.

+ (void)getMovesFromStartDate:(NSDate *)startDate toEndDate:(NSDate *)endDate completion:(UPBaseEventAPIArrayCompletion)completion

Parameters

startDate

The earliest date to fetch move events from.

endDate

The date up to which to fetch move events to.

completion

Block to be executed upon completion. The block is passed the results or any error information.

Discussion

Request move events between two points in time for the currently authenticated user.

Declared In

UPMoveAPI.h

getMovesWithLimit:completion:

Request recent move events for the currently authenticated user.

+ (void)getMovesWithLimit:(NSUInteger)limit completion:(UPBaseEventAPIArrayCompletion)completion

Parameters

limit

The maximum number of events to return.

completion

Block to be executed upon completion. This block is passed the results or any error information.

Discussion

Request recent move events for the currently authenticated user.

Declared In

UPMoveAPI.h

refreshMove:completion:

Request a single move event from the user’s history.

+ (void)refreshMove:(UPMove *)move completion:(UPMoveAPICompletion)completion

Parameters

move

The move event to request. The event must be visible to the user.

completion

Block to be executed upon completion. The block is passed the results.

Discussion

Request a single move event from the user’s history.

Declared In

UPMoveAPI.h