NSURL(DTUnshorten) Category Reference
Declared in | NSURL+DTUnshorten.h |
Overview
Method for getting the full length URL for a shortened one.
For example:
NSURL *url = [NSURL URLWithString:@“buff.ly/L4uGoza”];
[url unshortenWithCompletion:^(NSURL *url) { NSLog(@“Unshortened: %@”, url); }];
Instance Methods
unshortenWithCompletion:
Unshortens the receiver and returns the long URL via the completion handler.
- (void)unshortenWithCompletion:(NSURLUnshortenCompletionHandler)completion
Parameters
- completion
The completion handler
Discussion
Results are cached and therefore a subsequent call for the same receiver will return instantly if the result is still present in the cache.
Declared In
NSURL+DTUnshorten.h