From 4ba385c7cbb27ce622d016770f7192378724c67d Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 20 Jan 2020 02:32:17 +0100 Subject: [PATCH] 2020-01-20 --- ...mastodonpp_1_1Instance_1_1ObtainToken.html | 2 +- docs/instance_8hpp_source.html | 50 +++++++++---------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/docs/classmastodonpp_1_1Instance_1_1ObtainToken.html b/docs/classmastodonpp_1_1Instance_1_1ObtainToken.html index b6132d0..dc569bd 100644 --- a/docs/classmastodonpp_1_1Instance_1_1ObtainToken.html +++ b/docs/classmastodonpp_1_1Instance_1_1ObtainToken.html @@ -284,7 +284,7 @@ Additional Inherited Members

Creates a token via /oauth/token.

The body of the returned answer contains only the access token, not the whole JSON response.

-

The access token will be set in the parent Instance.

+

The access token will be set in the Instance you initialized ObtainToken with.

Parameters
diff --git a/docs/instance_8hpp_source.html b/docs/instance_8hpp_source.html index 2cceded..5372b07 100644 --- a/docs/instance_8hpp_source.html +++ b/docs/instance_8hpp_source.html @@ -187,31 +187,31 @@ $(function() {
268  answer_type step_1(string_view client_name, string_view scopes,
269  string_view website);
270 
-
285  [[nodiscard]]
-
286  answer_type step_2(string_view code);
-
287 
-
288  private:
-
289  Instance &_instance;
-
290  const string _baseuri;
-
291  string _scopes;
-
292  string _client_id;
-
293  string _client_secret;
-
294  };
-
295 
-
296 private:
-
297  const string _hostname;
-
298  const string _baseuri;
-
299  string _access_token;
-
300  uint64_t _max_chars;
-
301  string _proxy;
-
302  vector<string> _post_formats;
-
303  string _cainfo;
-
304  string _useragent;
-
305 };
-
306 
-
307 } // namespace mastodonpp
-
308 
-
309 #endif // MASTODONPP_INSTANCE_HPP
+
286  [[nodiscard]]
+
287  answer_type step_2(string_view code);
+
288 
+
289  private:
+
290  Instance &_instance;
+
291  const string _baseuri;
+
292  string _scopes;
+
293  string _client_id;
+
294  string _client_secret;
+
295  };
+
296 
+
297 private:
+
298  const string _hostname;
+
299  const string _baseuri;
+
300  string _access_token;
+
301  uint64_t _max_chars;
+
302  string _proxy;
+
303  vector<string> _post_formats;
+
304  string _cainfo;
+
305  string _useragent;
+
306 };
+
307 
+
308 } // namespace mastodonpp
+
309 
+
310 #endif // MASTODONPP_INSTANCE_HPP
Simplifies obtaining an OAuth 2.0 Bearer Access Token.
Definition: instance.hpp:236
answer_type get_nodeinfo()
Returns the NodeInfo of the instance.
codeThe authorization code you got from the user.