ShortenedURLExpander 1.0.3

ShortenedURLExpander 1.0.3

retriable 维护。



  • 作者:
  • retriable

ShortenedURLExpander

License MIT Build Status Carthage compatible Pod Version Pod Platform

缩略URL扩展器

Cocoapods

在您的Podfile中添加以下内容

pod 'ShortenedURLExpander'

Carthage

在您的Cartfile中添加以下内容

github "retriable/ShortenedURLExpander"

示例

    self.expander=[[ShortenedURLExpander alloc] initWithConfiguration:[NSURLSessionConfiguration defaultSessionConfiguration] isURLShortened:^bool(NSURL *url) {
        return [url.host isEqualToString:@"t.cn"];
    }];
    self.operation=[self.expander expand:[NSURL URLWithString:@"http://t.cn/RnWLQVx"] maximumRetries:2 completion:^(NSURL *originalUrl,NSURL *expandedUrl, NSError *error) {
        NSLog(@"%@",expandedUrl);
    }];