خرید بک لینک

Vote count: 0

I used postman and give me that code and i try.

NSDictionary *headers = @{ @"authorization": @"Basic dXNlcl90c19hcGk6cW****************",
                               @"cache-control": @"no-cache",
                               @"postman-token": @"48ca81bb-eea4-7196-*******************" };

    NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://www.techshort.in/ts_api/category_list.php"]
                                                           cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                       timeoutInterval:10.0];
    [request setHTTPMethod:@"GET"];
    [request setAllHTTPHeaderFields:headers];

    NSURLSession *session = [NSURLSession sharedSession];
    NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                                completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                    if (error) {
                                                        NSLog(@"%@", error);
                                                    } else {
                                                        NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                        NSLog(@"%@", httpResponse);
                                                    }
                                                }];
    [dataTask resume];

But it doesn't work for me. So how i can use in AFNetworking.

asked 16 secs ago

برچسب: i didn't get it,i didn't get your text hat,i didn't get my tax refund,i didn't get my package from ups,i didn't get the memo,i didn't get to say goodbye,i didn't get my hogwarts letter shirt,i didn't get my child support this week,i didn't get to sleep at all,i didn't get no sleep gif, نویسنده: استخدام کار تاريخ: جمعه 7 آبان 1395 ساعت: 0:53

صفحه بندی