<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.appstudio.dev/index.php?action=history&amp;feed=atom&amp;title=Current_user</id>
	<title>Current user - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.appstudio.dev/index.php?action=history&amp;feed=atom&amp;title=Current_user"/>
	<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/index.php?title=Current_user&amp;action=history"/>
	<updated>2026-07-26T07:03:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.appstudio.dev/index.php?title=Current_user&amp;diff=11207&amp;oldid=prev</id>
		<title>Ghenne at 15:22, 25 February 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/index.php?title=Current_user&amp;diff=11207&amp;oldid=prev"/>
		<updated>2021-02-25T15:22:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:22, 25 February 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;$volt.use.get&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;callback&amp;#039;&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;$volt.use.get&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;callback&amp;#039;&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;callback&#039;&#039; - function(error, data), required. The function in your app to call when the request to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Volt &lt;/del&gt;is complete (or fails).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;callback&#039;&#039; - function(error, data), required. The function in your app to call when the request to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;VoltServer &lt;/ins&gt;is complete (or fails).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;syntaxhighlight lang=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;syntaxhighlight lang=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l49&quot;&gt;Line 49:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;What gets returned? &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Here is what is in the initial release of Volt:&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;What gets returned?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l70&quot;&gt;Line 70:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 70:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;data&amp;#039;&amp;#039; - object, required. An object with the user details to update.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;#039;&amp;#039;data&amp;#039;&amp;#039; - object, required. An object with the user details to update.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;callback&#039;&#039; - function(error, data), required. The function in your app to call when the request to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Volt &lt;/del&gt;is complete (or fails).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;callback&#039;&#039; - function(error, data), required. The function in your app to call when the request to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;VoltServer &lt;/ins&gt;is complete (or fails).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The data object should be of the following form:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The data object should be of the following form:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l129&quot;&gt;Line 129:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 129:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;$volt.user.delete&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;callback&amp;#039;&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;$volt.user.delete&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;callback&amp;#039;&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;callback&#039;&#039; - function(error, data), required. The function in your app to call when the request to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Volt &lt;/del&gt;is complete (or fails).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &#039;&#039;callback&#039;&#039; - function(error, data), required. The function in your app to call when the request to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;VoltServer &lt;/ins&gt;is complete (or fails).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;syntaxhighlight lang=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;syntaxhighlight lang=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key nsbasic_mediawiki1348787612:diff:1.41:old-9243:rev-11207:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Ghenne</name></author>
	</entry>
	<entry>
		<id>https://wiki.appstudio.dev/index.php?title=Current_user&amp;diff=9243&amp;oldid=prev</id>
		<title>Sarah: Instructions for creating and working with the current user</title>
		<link rel="alternate" type="text/html" href="https://wiki.appstudio.dev/index.php?title=Current_user&amp;diff=9243&amp;oldid=prev"/>
		<updated>2017-05-26T23:23:23Z</updated>

		<summary type="html">&lt;p&gt;Instructions for creating and working with the current user&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Here are some functions for managing the users of your app. You&amp;#039;ll need to [[first_app|initialize your app]], after which you can get the information for the logged in user, modify it or delete it.&lt;br /&gt;
&lt;br /&gt;
== Get User information ==&lt;br /&gt;
&lt;br /&gt;
You can get information on the currently logged on user with the  &amp;lt;code&amp;gt;$volt.user.get()&amp;lt;/code&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
The syntax of the function is:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;$volt.use.get&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;callback&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;callback&amp;#039;&amp;#039; - function(error, data), required. The function in your app to call when the request to Volt is complete (or fails).&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;syntaxhighlight lang=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
  var user;&lt;br /&gt;
&lt;br /&gt;
  butGetUser.onclick = function() {&lt;br /&gt;
    $volt.user.get(getUserCallback);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  function getUserCallback(error, data) {&lt;br /&gt;
    if (error) {&lt;br /&gt;
      if (!data) {&lt;br /&gt;
        data = { message: &amp;#039;Network Error&amp;#039; };&lt;br /&gt;
      }&lt;br /&gt;
      alert(data.message);&lt;br /&gt;
      user = null;&lt;br /&gt;
    } else {&lt;br /&gt;
      user = data;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;syntaxhighlight lang=&amp;quot;basic&amp;quot;&amp;gt;&lt;br /&gt;
  Dim user&lt;br /&gt;
&lt;br /&gt;
  Function butGetUser_onclick()&lt;br /&gt;
    $volt.user.get(getUserCallback)&lt;br /&gt;
  End Function&lt;br /&gt;
&lt;br /&gt;
  Function getUserCallback(error, data)&lt;br /&gt;
    If error Then&lt;br /&gt;
      If (!data) Then data = { message: &amp;quot;Network Error&amp;quot; }&lt;br /&gt;
      alert(data.message)&lt;br /&gt;
      user = null&lt;br /&gt;
    Else&lt;br /&gt;
      user = data&lt;br /&gt;
    End If&lt;br /&gt;
  End Function&lt;br /&gt;
  &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
What gets returned? Here is what is in the initial release of Volt:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  {&lt;br /&gt;
    &amp;quot;id&amp;quot;: &amp;quot;7PQipR&amp;quot;,&lt;br /&gt;
    &amp;quot;email&amp;quot;: &amp;quot;support@nsbasic.com&amp;quot;,&lt;br /&gt;
    &amp;quot;confirmed&amp;quot;: true,&lt;br /&gt;
    &amp;quot;first_name&amp;quot;: &amp;quot;John&amp;quot;,&lt;br /&gt;
    &amp;quot;last_name&amp;quot;: &amp;quot;Smith&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
  &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Modify User information ==&lt;br /&gt;
&lt;br /&gt;
You can change information for the currently logged on user with the &amp;lt;code&amp;gt;$volt.user.update()&amp;lt;/code&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
The syntax of the function is:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;$volt.user.get&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;data&amp;#039;&amp;#039;, &amp;#039;&amp;#039;callback&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;data&amp;#039;&amp;#039; - object, required. An object with the user details to update.&lt;br /&gt;
* &amp;#039;&amp;#039;callback&amp;#039;&amp;#039; - function(error, data), required. The function in your app to call when the request to Volt is complete (or fails).&lt;br /&gt;
&lt;br /&gt;
The data object should be of the following form:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
  {&lt;br /&gt;
    &amp;quot;email&amp;quot;: &amp;quot;new@email.com&amp;quot;,&lt;br /&gt;
    &amp;quot;password&amp;quot;: {&lt;br /&gt;
      &amp;quot;old&amp;quot;: &amp;quot;myOldPassword&amp;quot;,&lt;br /&gt;
      &amp;quot;new&amp;quot;: &amp;quot;myNewPassword&amp;quot;,&lt;br /&gt;
      &amp;quot;confirmation&amp;quot;: &amp;quot;myNewPassword&amp;quot;&lt;br /&gt;
    },&lt;br /&gt;
    &amp;quot;first_name&amp;quot;: &amp;quot;Alan&amp;quot;,&lt;br /&gt;
    &amp;quot;last_name&amp;quot;: &amp;quot;Turing&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
  &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can pass &amp;lt;code&amp;gt;email&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;password&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;first_name&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;last_name&amp;lt;/code&amp;gt; or any combination thereof. Here&amp;#039;s an example of changing the logged in user&amp;#039;s email:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;syntaxhighlight lang=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
  butUpdateUser.onclick = function() {&lt;br /&gt;
    $volt.user.update({ email: inpNewEmail.value }, updateUserCallback);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  function updateUserCallback(error, data) {&lt;br /&gt;
    if (error) {&lt;br /&gt;
      if (!data) {&lt;br /&gt;
        data = { message: &amp;#039;Network Error&amp;#039; };&lt;br /&gt;
      }&lt;br /&gt;
      alert(data.message);&lt;br /&gt;
    } else {&lt;br /&gt;
      alert(&amp;#039;User updated.&amp;#039;);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;syntaxhighlight lang=&amp;quot;basic&amp;quot;&amp;gt;&lt;br /&gt;
  Function butUpdateUser_onclick()&lt;br /&gt;
    $volt.user.update({ email: inpNewEmail.value }, updateUserCallback)&lt;br /&gt;
  End Function&lt;br /&gt;
&lt;br /&gt;
  Function getUserCallback(error, data)&lt;br /&gt;
    If error Then&lt;br /&gt;
      If (!data) Then data = { message: &amp;quot;Network Error&amp;quot; }&lt;br /&gt;
      alert(data.message)&lt;br /&gt;
    Else&lt;br /&gt;
      alert(&amp;quot;User updated.&amp;quot;)&lt;br /&gt;
    End If&lt;br /&gt;
  End Function&lt;br /&gt;
  &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Delete a User ==&lt;br /&gt;
&lt;br /&gt;
You can provide your users with a way to close/delete their accounts using the &amp;lt;code&amp;gt;$volt.user.delete()&amp;lt;/code&amp;gt; function.&lt;br /&gt;
&lt;br /&gt;
The syntax of the function is:&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;$volt.user.delete&amp;#039;&amp;#039;&amp;#039;(&amp;#039;&amp;#039;callback&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;callback&amp;#039;&amp;#039; - function(error, data), required. The function in your app to call when the request to Volt is complete (or fails).&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;syntaxhighlight lang=&amp;quot;JavaScript&amp;quot;&amp;gt;&lt;br /&gt;
  function deleteUser() {&lt;br /&gt;
    $volt.user.delete(deleteUserCallback);&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  function deleteUserCallback(error, data) {&lt;br /&gt;
    if (error) {&lt;br /&gt;
      if (!data) {&lt;br /&gt;
        data = { message: &amp;#039;Network Error&amp;#039; };&lt;br /&gt;
      }&lt;br /&gt;
      alert(data.message);&lt;br /&gt;
    } else {&lt;br /&gt;
      alert(&amp;#039;User deleted.&amp;#039;);&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
  &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;syntaxhighlight lang=&amp;quot;basic&amp;quot;&amp;gt;&lt;br /&gt;
  Function deleteUser()&lt;br /&gt;
    $volt.user.delete(deleteUserCallback)&lt;br /&gt;
  End Function&lt;br /&gt;
&lt;br /&gt;
  Function deleteUserCallback(error, data)&lt;br /&gt;
    If error Then&lt;br /&gt;
      If (!data) Then data = { message: &amp;quot;Network Error&amp;quot; }&lt;br /&gt;
      MsgBox data.message&lt;br /&gt;
    Else&lt;br /&gt;
      MsgBox &amp;quot;User Deleted&amp;quot;&lt;br /&gt;
    End If&lt;br /&gt;
  End Function&lt;br /&gt;
  &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Reference ==&lt;br /&gt;
&lt;br /&gt;
* JavaScript API&lt;br /&gt;
  * [https://docs.voltcloud.io/client/$volt.user.html#.get https://docs.voltcloud.io/client/$volt.user.html#.get]&lt;br /&gt;
  * [https://docs.voltcloud.io/client/$volt.user.html#.update https://docs.voltcloud.io/client/$volt.user.html#.update]&lt;br /&gt;
  * [https://docs.voltcloud.io/client/$volt.user.html#.delete https://docs.voltcloud.io/client/$volt.user.html#.delete]&lt;br /&gt;
* REST API&lt;br /&gt;
  * [https://docs.voltcloud.io/api/#users-current-user-get https://docs.voltcloud.io/api/#users-current-user-get]&lt;br /&gt;
  * [https://docs.voltcloud.io/api/#users-current-user-put https://docs.voltcloud.io/api/#users-current-user-put]&lt;br /&gt;
  * [https://docs.voltcloud.io/api/#users-current-user-delete https://docs.voltcloud.io/api/#users-current-user-delete]&lt;/div&gt;</summary>
		<author><name>Sarah</name></author>
	</entry>
</feed>