Files
2014-06-13 15:53:21 -07:00

516 lines
14 KiB
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>UPUserAPI Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
<meta name="generator" content="appledoc 2.2 (build 961)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">UPPlatformSDK </a></h1>
<a id="developerHome" href="../index.html">Jawbone</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">UPUserAPI Class Reference</h1>
</div>
<ul id="headerButtons" role="toolbar">
<li id="toc_button">
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
</li>
<li id="jumpto_button" role="navigation">
<select id="jumpTo">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="class_methods">Class Methods</option>
<option value="//api/name/getCurrentUserWithCompletion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getCurrentUserWithCompletion:</option>
<option value="//api/name/getFriendsWithCompletion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getFriendsWithCompletion:</option>
<option value="//api/name/getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:</option>
<option value="//api/name/getUserGoalsWithCompletion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getUserGoalsWithCompletion:</option>
<option value="//api/name/getUserSharingSettingsWithCompletion:">&nbsp;&nbsp;&nbsp;&nbsp;+ getUserSharingSettingsWithCompletion:</option>
</select>
</li>
</ul>
</header>
<nav id="tocContainer" class="isShowingTOC">
<ul id="toc" role="tree">
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
</ul></li>
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getCurrentUserWithCompletion:">getCurrentUserWithCompletion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getFriendsWithCompletion:">getFriendsWithCompletion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:">getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getUserGoalsWithCompletion:">getUserGoalsWithCompletion:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/getUserSharingSettingsWithCompletion:">getUserSharingSettingsWithCompletion:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="UPUserAPI Class Reference" name="top"></a>
<div class="main-navigation navigation-top">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="header">
<div class="section-header">
<h1 class="title title-header">UPUserAPI Class Reference</h1>
</div>
</div>
<div id="container">
<div class="section section-specification"><table cellspacing="0"><tbody>
<tr>
<td class="specification-title">Inherits from</td>
<td class="specification-value">NSObject</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">UPUserAPI.h<br />UPUserAPI.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p>Provides an interface for interacting with the logged in user.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/getCurrentUserWithCompletion:">+&nbsp;getCurrentUserWithCompletion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getFriendsWithCompletion:">+&nbsp;getFriendsWithCompletion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:">+&nbsp;getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getUserGoalsWithCompletion:">+&nbsp;getUserGoalsWithCompletion:</a></code>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/getUserSharingSettingsWithCompletion:">+&nbsp;getUserSharingSettingsWithCompletion:</a></code>
</span>
</li>
</ul>
</div>
<div class="section section-methods">
<a title="Class Methods" name="class_methods"></a>
<h2 class="subtitle subtitle-methods">Class Methods</h2>
<div class="section-method">
<a name="//api/name/getCurrentUserWithCompletion:" title="getCurrentUserWithCompletion:"></a>
<h3 class="subsubtitle method-title">getCurrentUserWithCompletion:</h3>
<div class="method-subsection brief-description">
<p>Gets details about the current user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getCurrentUserWithCompletion:(UPUserAPICompletion)<em>completion</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Gets details about the current user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getFriendsWithCompletion:" title="getFriendsWithCompletion:"></a>
<h3 class="subsubtitle method-title">getFriendsWithCompletion:</h3>
<div class="method-subsection brief-description">
<p>Gets a list of the current user&rsquo;s friend xids.
These can be used to map the user&rsquo;s friends with other users registered with the 3rd party application.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getFriendsWithCompletion:(UPBaseEventAPIArrayCompletion)<em>completion</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Gets a list of the current user&rsquo;s friend xids.
These can be used to map the user&rsquo;s friends with other users registered with the 3rd party application.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:" title="getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:"></a>
<h3 class="subsubtitle method-title">getTrendsWithEndDate:rangeType:rangeDuration:bucketSize:completion:</h3>
<div class="method-subsection brief-description">
<p>Gets a set of trends about the user.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getTrendsWithEndDate:(NSDate *)<em>endDate</em> rangeType:(UPUserTrendsRangeType)<em>rangeType</em> rangeDuration:(NSUInteger)<em>rangeDuration</em> bucketSize:(UPUserTrendsBucketSize)<em>bucketSize</em> completion:(UPUserTrendsAPICompletion)<em>completion</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Gets a set of trends about the user.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getUserGoalsWithCompletion:" title="getUserGoalsWithCompletion:"></a>
<h3 class="subsubtitle method-title">getUserGoalsWithCompletion:</h3>
<div class="method-subsection brief-description">
<p>Gets the user&rsquo;s most recent goals.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getUserGoalsWithCompletion:(UPUserGoalsAPICompletion)<em>completion</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Gets the user&rsquo;s most recent goals.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/getUserSharingSettingsWithCompletion:" title="getUserSharingSettingsWithCompletion:"></a>
<h3 class="subsubtitle method-title">getUserSharingSettingsWithCompletion:</h3>
<div class="method-subsection brief-description">
<p>Gets the user&rsquo;s sharing settings.</p>
</div>
<div class="method-subsection method-declaration"><code>+ (void)getUserSharingSettingsWithCompletion:(UPUserSharingSettingsAPICompletion)<em>completion</em></code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Gets the user&rsquo;s sharing settings.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">UPUserAPI.h</code><br />
</div>
</div>
</div>
</div>
<div class="main-navigation navigation-bottom">
<ul>
<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
</div>
<div id="footer">
<hr />
<div class="footer-copyright">
<p><span class="copyright">&copy; 2014 Jawbone. All rights reserved. (Last updated: 2014-06-13)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 961)</a>.</span></p>
</div>
</div>
</div>
</article>
<script type="text/javascript">
function jumpToChange()
{
window.location.hash = this.options[this.selectedIndex].value;
}
function toggleTOC()
{
var contents = document.getElementById('contents');
var tocContainer = document.getElementById('tocContainer');
if (this.getAttribute('class') == 'open')
{
this.setAttribute('class', '');
contents.setAttribute('class', '');
tocContainer.setAttribute('class', '');
window.name = "hideTOC";
}
else
{
this.setAttribute('class', 'open');
contents.setAttribute('class', 'isShowingTOC');
tocContainer.setAttribute('class', 'isShowingTOC');
window.name = "";
}
return false;
}
function toggleTOCEntryChildren(e)
{
e.stopPropagation();
var currentClass = this.getAttribute('class');
if (currentClass == 'children') {
this.setAttribute('class', 'children open');
}
else if (currentClass == 'children open') {
this.setAttribute('class', 'children');
}
return false;
}
function tocEntryClick(e)
{
e.stopPropagation();
return true;
}
function init()
{
var selectElement = document.getElementById('jumpTo');
selectElement.addEventListener('change', jumpToChange, false);
var tocButton = document.getElementById('table_of_contents');
tocButton.addEventListener('click', toggleTOC, false);
var taskTreeItem = document.getElementById('task_treeitem');
if (taskTreeItem.getElementsByTagName('li').length > 0)
{
taskTreeItem.setAttribute('class', 'children');
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
}
var tocList = document.getElementById('toc');
var tocEntries = tocList.getElementsByTagName('li');
for (var i = 0; i < tocEntries.length; i++) {
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
}
var tocLinks = tocList.getElementsByTagName('a');
for (var i = 0; i < tocLinks.length; i++) {
tocLinks[i].addEventListener('click', tocEntryClick, false);
}
if (window.name == "hideTOC") {
toggleTOC.call(tocButton);
}
}
window.onload = init;
// If showing in Xcode, hide the TOC and Header
if (navigator.userAgent.match(/xcode/i)) {
document.getElementById("contents").className = "hideInXcode"
document.getElementById("tocContainer").className = "hideInXcode"
document.getElementById("top_header").className = "hideInXcode"
}
</script>
</body>
</html>