Last active
December 30, 2015 03:19
-
-
Save Fogh/7768936 to your computer and use it in GitHub Desktop.
CVRAPI.dk example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSString *)getCompanyName | |
{ | |
NSURL *url = [NSURL URLWithString:@"http://cvrapi.dk/10150817"]; | |
NSData *data = [NSData dataWithContentsOfURL:url]; | |
NSError *error; | |
NSDictionary *response = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&error]; | |
NSString *companyName = [response objectForKey:@"navn"]; | |
return companyName; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment