[Add] AlibabacloudAgency20221216 1.7.0
[CocoaPods.git] / Specs / f / a / 5 / urlHandler / 0.1.1 / urlHandler.podspec.json
blob1b20d564666d99619c9a423fe8370588c8ca627c
2   "name": "urlHandler",
3   "version": "0.1.1",
4   "summary": "Easy way to work with NSURL in Objective-C.",
5   "description": "                       #urlHandler\n==========\n\nEasy way to work with NSURL in Objective-C \n\nHow to use :\n\ninitCache in AppDelegate didFinishLaunchingWithOptions \n```objective-c\n[[UrlHandler sharedInstance] initCache];\n```\n\n\nBasic URL request .\n```objective-c\n[[UrlHandler sharedInstance] basicURL:@\"http://google.com\" :^(NSError *error, id returnObject) {\n    if(error != (NSError*)[NSNull null] && ![returnObject isEqualToString:@\"notReachable\"]){\n        NSLog(@\"returnObject : %@\",returnObject);\n    }else{\n        NSLog(@\"error : %@\",error);\n    }\n}];\n```\n\n\nDownload File with progress .\n```objective-c\n[[UrlHandler sharedInstance] downloadFileWithURL:@\"http://www.socialtalent.co/wp-content/uploads/blog-content/so-logo.png\" withName:@\"logo.png\" progressBlock:^(float pre) {\n    NSLog(@\"progress :%f\",pre);\n} completionBlock:^(NSError *error, id returnObject) {\n    NSLog(@\"error : %@:%@\",error,returnObject);\n}];\n```\n\nMultiple File Downloader with progress .\n```objective-c\nNSArray *array = @[@\"http://wfiles.brothersoft.com/a/awesome-ice-block_178817-1920x1080.jpg\",\n                   @\"http://www.hitswallpapers.com/wp-content/uploads/2014/07/awesome-city-wallpapers-1920x1080-2.jpg\",\n                   @\"http://awesomewallpaper.files.wordpress.com/2011/09/splendorous1920x1080.jpg\",\n                   ];\n[[UrlHandler sharedInstance] downloadListOfListWithArray:array progressBlock:^(float pre, int current) {\n    NSLog(@\"progress :%f:%d\",pre,current);\n} completionBlock:^(NSError *error, id returnObject, int currentObj) {\n    NSLog(@\"error : %@:%@:%d\",error,returnObject,currentObj);\n}];\n```\n\nForm Request .\n```objective-c\nNSDictionary *dic = @{\n    @\"name\":@\"awesome\",\n    @\"email\":@\"awesome@cool.awesome\"\n};\n[[UrlHandler sharedInstance] basicFormURL:@\"http://10.0.1.5/testPost.php\" :@\"POST\" :dic :^(NSError *error, id returnObject) {\n    if(error != (NSError*)[NSNull null] && ![returnObject isEqualToString:@\"notReachable\"]){\n        NSLog(@\"returnObject : %@\",returnObject);\n    }else{\n        NSLog(@\"error : %@\",error);\n    }\n}];\n```\nForm Request with File uploading.\n```objective-c\nNSData *imageData = UIImageJPEGRepresentation([UIImage imageNamed:@\"img.jpg\"], 90);\nNSDictionary *fileInfo = @{\n    @\"data\":imageData,\n    @\"contentType\":@\"image/jpeg\",\n    @\"fileName\":@\"image.jpeg\",\n    @\"key\":@\"userfile\"\n};\ndic = @{\n                      @\"comment\":@\"this is a comment\",\n                      @\"region\":@\"awesome@cool.awesome\",\n                      @\"pincode\":@\"100000\",\n                      @\"name\":@\"Rahul Emosewa\",\n                      @\"phone\":@\"9821829923\",\n                      @\"file\":fileInfo\n                      };\n[[UrlHandler sharedInstance] multipleFormUrl:@\"http://10.0.1.5/Afrimart_backEnd/post.php\" :@\"POST\" postDictionary:dic progressBlock:^(float pre) {\n    NSLog(@\"progress :%f\",pre);\n} completionBlock:^(NSError *error, id returnObject) {\n    NSLog(@\"error : %@:%@\",error,returnObject);\n}];\n```\n\n",
6   "homepage": "http://github.com/rahulsend89/urlHandler",
7   "license": "MIT",
8   "authors": {
9     "Rahul Malik": "rahul.send89@gmail.com"
10   },
11   "source": {
12     "git": "https://github.com/rahulsend89/urlHandler.git",
13     "tag": "0.1.1"
14   },
15   "platforms": {
16     "ios": "7.0"
17   },
18   "requires_arc": true,
19   "source_files": "urlHandler/UrlHandler.{h,m}",
20   "dependencies": {
21     "Reachability": [
23     ]
24   }