fixed example07
This commit is contained in:
parent
445567744d
commit
364ac268fd
|
@ -30,8 +30,7 @@ int main(int argc, char *argv[])
|
||||||
std::uint16_t ret;
|
std::uint16_t ret;
|
||||||
std::string client_id, client_secret, url;
|
std::string client_id, client_secret, url;
|
||||||
|
|
||||||
ret = masto.register_app1(argv[1],
|
ret = masto.register_app1("test123",
|
||||||
"test123",
|
|
||||||
"urn:ietf:wg:oauth:2.0:oob",
|
"urn:ietf:wg:oauth:2.0:oob",
|
||||||
"read follow",
|
"read follow",
|
||||||
"",
|
"",
|
||||||
|
@ -47,8 +46,7 @@ int main(int argc, char *argv[])
|
||||||
std::cin >> code;
|
std::cin >> code;
|
||||||
|
|
||||||
std::string access_token;
|
std::string access_token;
|
||||||
ret = masto.register_app2(argv[1],
|
ret = masto.register_app2(client_id,
|
||||||
client_id,
|
|
||||||
client_secret,
|
client_secret,
|
||||||
"urn:ietf:wg:oauth:2.0:oob",
|
"urn:ietf:wg:oauth:2.0:oob",
|
||||||
code,
|
code,
|
||||||
|
|
Reference in New Issue