Skip to content

Commit b78a90b

Browse files
committed
add signin on config/credentials save
1 parent dc1fc60 commit b78a90b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

plotly/plotly_user_aux/saveplotlyconfig.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,16 @@ function saveplotlyconfig(plotly_domain,plotly_streaming_domain)
4545
'chris@plot.ly for support.']);
4646
end
4747

48+
% get user credenitals
49+
[username, api_key] = signin;
4850

4951
switch nargin
5052
case 1
5153
config.plotly_domain = plotly_domain;
54+
signin(username, api_key, plotly_domain);
5255
case 2
5356
config.plotly_domain = plotly_domain;
57+
signin(username, api_key, plotly_domain);
5458
config.plotly_streaming_domain= plotly_streaming_domain;
5559
otherwise %if neither endpoints are specified, no worries!
5660
end

plotly/plotly_user_aux/saveplotlycredentials.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,7 @@ function saveplotlycredentials(username, api_key, stream_ids)
6161
fprintf(fileIDCred,'%s',creds_string);
6262
fclose(fileIDCred);
6363

64+
%signin using newly saved credentials
65+
signin(username, api_key);
66+
6467
end

0 commit comments

Comments
 (0)