Skip to content

Commit

Permalink
Update SampleOAuthViewController.m
Browse files Browse the repository at this point in the history
  • Loading branch information
HanBin-Kim authored Apr 30, 2018
1 parent 5c53436 commit b3cd053
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions NaverIDLoginSample/SampleOAuthViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ - (void)didClickCheckNidTokenBtn:(SampleOAuthView *)view {
[_mainView setResultLabelText:@"로그인 하세요."];
return;
}
NSString *urlString = @"https://apis.naver.com/nidlogin/nid/getUserProfile.xml"; // 아이디 호출
//xml
//NSString *urlString = @"https://openapi.naver.com/v1/nid/getUserProfile.xml"; // 아이디 호출
//json
NSString *urlString = @"https://openapi.naver.com/v1/nid/me";

NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString]];

Expand Down Expand Up @@ -154,8 +157,11 @@ - (void)didClickGetUserProfileBtn:(SampleOAuthView *)view {
[_mainView setResultLabelText:@"로그인 하세요."];
return;
}

NSString *urlString = @"https://apis.naver.com/nidlogin/nid/getUserProfile.xml"; // 사용자 프로필 호출

//xml
//NSString *urlString = @"https://openapi.naver.com/v1/nid/getUserProfile.xml"; // 사용자 프로필 호출
//json
NSString *urlString = @"https://openapi.naver.com/v1/nid/me";

NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString]];

Expand Down

0 comments on commit b3cd053

Please sign in to comment.