fixed example07

This commit is contained in:
tastytea 2018-04-01 03:37:01 +02:00
부모 445567744d
커밋 364ac268fd
로그인 계정: tastytea
GPG 키 ID: 59346E0EA35C67E5
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제

파일 보기

@ -30,8 +30,7 @@ int main(int argc, char *argv[])
std::uint16_t ret;
std::string client_id, client_secret, url;
ret = masto.register_app1(argv[1],
"test123",
ret = masto.register_app1("test123",
"urn:ietf:wg:oauth:2.0:oob",
"read follow",
"",
@ -47,8 +46,7 @@ int main(int argc, char *argv[])
std::cin >> code;
std::string access_token;
ret = masto.register_app2(argv[1],
client_id,
ret = masto.register_app2(client_id,
client_secret,
"urn:ietf:wg:oauth:2.0:oob",
code,