Skip to content

Commit 23aae57

Browse files
committed
remove signin (handled by save creds/config)
1 parent b78a90b commit 23aae57

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

plotlysetup.m

+14-5
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ function plotlysetup(username, api_key, varargin)
139139

140140
try %save user credentials
141141
fprintf('Saving username/api_key credentials ... ');
142-
saveplotlycredentials(username,api_key);
142+
143+
%update: as of v.2.1.7, This also signs in the user
144+
saveplotlycredentials(username, api_key);
145+
143146
%worked!
144147
fprintf('Done\n');
145148
catch exception %writing credentials file permission problem catch...
@@ -168,13 +171,19 @@ function plotlysetup(username, api_key, varargin)
168171

169172
if strcmp(varargin{n},'stream_ids')
170173
fprintf('Saving stream_ids credentials ... ');
171-
saveplotlycredentials(username,api_key,varargin{n+1});
174+
175+
%update: as of v.2.1.7, This also signs in the user
176+
saveplotlycredentials(username, api_key, varargin{n+1});
177+
172178
%worked!
173179
fprintf('Done\n');
174180
end
175181
if strcmp(varargin{n},'plotly_domain')
176182
fprintf('Saving plotly_domain configuration ... ');
183+
184+
%update: as of v.2.1.7, This also signs in the user
177185
saveplotlyconfig(varargin{n+1});
186+
178187
%worked!
179188
fprintf('Done\n');
180189
end
@@ -185,7 +194,10 @@ function plotlysetup(username, api_key, varargin)
185194
catch
186195
config.plotly_domain = '';
187196
end
197+
198+
%update: as of v.2.1.7, This also signs in the user
188199
saveplotlyconfig(config.plotly_domain,varargin{n+1});
200+
189201
%worked!
190202
fprintf('Done\n');
191203
end
@@ -195,9 +207,6 @@ function plotlysetup(username, api_key, varargin)
195207
fprintf(['\n\n' exception.identifier exception.message '\n\n']);
196208
end
197209

198-
%sign in the user
199-
signin(username,api_key);
200-
201210
%greet the people!
202211
fprintf('\nWelcome to Plotly! If you are new to Plotly please enter: >> plotlyhelp to get started!\n\n')
203212

0 commit comments

Comments
 (0)