File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
SpotifyAPI.Docs/docs/SpotifyWebAPI Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -88,15 +88,15 @@ static void Main(string[] args)
88
88
89
89
static void auth_OnResponseReceivedEvent(Token token, string state, string error)
90
90
{
91
- //stop the http server
92
- auth.StopHttpServer();
93
-
94
91
var spotify = new SpotifyWebApiClass()
95
92
{
96
93
TokenType = token.TokenType,
97
94
AccessToken = token.AccessToken
98
95
};
99
96
//We can now make calls with the token object
97
+
98
+ //stop the http server
99
+ auth.StopHttpServer();
100
100
}
101
101
```
102
102
@@ -138,8 +138,6 @@ static void Main(string[] args)
138
138
139
139
private static void auth_OnResponseReceivedEvent(AutorizationCodeAuthResponse response)
140
140
{
141
- //Stop the HTTP Server, done.
142
- auth.StopHttpServer();
143
141
144
142
//NEVER DO THIS! You would need to provide the ClientSecret.
145
143
//You would need to do it e.g via a PHP-Script.
@@ -152,6 +150,9 @@ private static void auth_OnResponseReceivedEvent(AutorizationCodeAuthResponse re
152
150
};
153
151
154
152
//With the token object, you can now make API calls
153
+
154
+ //Stop the HTTP Server, done.
155
+ auth.StopHttpServer();
155
156
}
156
157
```
157
158
You can’t perform that action at this time.
0 commit comments