Browse Source

fixed example07

tastytea 9 months ago
parent
commit
364ac268fd
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: 59346E0EA35C67E5
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      examples/example07_register_app.cpp

+ 2
- 4
examples/example07_register_app.cpp View File

@@ -30,8 +30,7 @@ int main(int argc, char *argv[])
30 30
     std::uint16_t ret;
31 31
     std::string client_id, client_secret, url;
32 32
 
33
-    ret = masto.register_app1(argv[1],
34
-                              "test123",
33
+    ret = masto.register_app1("test123",
35 34
                               "urn:ietf:wg:oauth:2.0:oob",
36 35
                               "read follow",
37 36
                               "",
@@ -47,8 +46,7 @@ int main(int argc, char *argv[])
47 46
         std::cin >> code;
48 47
 
49 48
         std::string access_token;
50
-        ret = masto.register_app2(argv[1],
51
-                                  client_id,
49
+        ret = masto.register_app2(client_id,
52 50
                                   client_secret,
53 51
                                   "urn:ietf:wg:oauth:2.0:oob",
54 52
                                   code,

Loading…
Cancel
Save