Inherits from NSObject
Declared in UPUserAPI.h
UPUserAPI.m

Overview

Provides an interface for interacting with the logged in user.

Class Methods

getCurrentUserWithCompletion:

Gets details about the current user.

+ (void)getCurrentUserWithCompletion:(UPUserAPICompletion)completion

Discussion

Gets details about the current user.

Declared In

UPUserAPI.h

getFriendsWithCompletion:

Gets a list of the current user’s friend xids. These can be used to map the user’s friends with other users registered with the 3rd party application.

+ (void)getFriendsWithCompletion:(UPBaseEventAPIArrayCompletion)completion

Discussion

Gets a list of the current user’s friend xids. These can be used to map the user’s friends with other users registered with the 3rd party application.

Declared In

UPUserAPI.h

getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:

Gets a set of trends about the user.

+ (void)getTrendsWithEndDate:(NSDate *)endDate rangeType:(UPUserTrendsRangeType)rangeType rangeDuration:(NSUInteger)rangeDuration bucketSize:(UPUserTrendsBucketSize)bucketSize completion:(UPUserTrendsAPICompletion)completion

Discussion

Gets a set of trends about the user.

Declared In

UPUserAPI.h

getUserGoalsWithCompletion:

Gets the user’s most recent goals.

+ (void)getUserGoalsWithCompletion:(UPUserGoalsAPICompletion)completion

Discussion

Gets the user’s most recent goals.

Declared In

UPUserAPI.h

getUserSharingSettingsWithCompletion:

Gets the user’s sharing settings.

+ (void)getUserSharingSettingsWithCompletion:(UPUserSharingSettingsAPICompletion)completion

Discussion

Gets the user’s sharing settings.

Declared In

UPUserAPI.h