Hello ,
I have used below code for fetching the user data .
But it was giving below error.
Please help if any body has done it before
JSONValue failed. Error trace is: ( "Error Domain=org.brautaset.JSON.ErrorDomain Code=3 \"Unrecognised leading character\" UserInfo=0x4e85810 {NSLocalizedDescription=Unrecognised leading character}"- - (void)sendRequests {
-
- YOSUserRequest *request = [YOSUserRequest requestWithSession:session];
-
-
- YOSResponseData *userProfileResponse = [request
- fetchProfileWithDelegate:self];
- }
-
- - (void)requestDidFinishLoading:(YOSResponseData *)data {
-
- NSDictionary *rspData = [data.responseText JSONValue];
- NSDictionary *profileData = [rspData objectForKey:@"profile"];
-
-
- NSString *welcomeText = [NSString stringWithFormat:@"Hey %@ %@!",
- [profileData objectForKey:@"givenName"],
- [profileData objectForKey:@"familyName"]];
- }