<commit_before>YKTwitterHelper
===============

Blocks based Twitter Auth and ReverseAuth to fetch `oauth_token` and `oauth_token_secret`. 

### Overview

This is basically a refactor of Sean Cook's [https://github.com/seancook/TWReverseAuthExample](https://github.com/seancook/TWReverseAuthExample) to make it super easy to use by simply dragging and dropping to a project. 

There are literally 3 small steps from setup to getting your `oauth_token` and `oauth_token_secret` from Twitter.

### How To Use

1) Drag and drop **YKTwitterHelper** folder to your project.

2) Create an instance: 
    
    YKTwitterHelper *twitterHelper = [[YKTwitterHelper alloc] initWithKey:kTWConsumerKey 
    															andSecret:kTWConsumerSecret];
    											
3) Use following method get `oauth_token` and `oauth_token_secret` via **reverse auth** as below:

	[twitterHelper reverseAuthWithSuccess:^(NSDictionary *data) {
        NSLog (@"%@", [data descriptionInStringsFileFormat]);
    } failure:^(NSError *error) {
        NSLog (@"%@", error.description);
    }];

   Or to simply get user authorization to access Twitter accounts configured in the system use this method instead:

	[twitterHelper authWithSuccess:^(ACAccount *account) {
		NSLog (@"%@", [NSString stringWithFormat:@"User: %@ authorized", account.accountDescription]);
	} failure:^(NSError *error) {
        NSLog (@"%@", error.description);
    }];
    

###  License

The MIT License (MIT)

Copyright (c) 2014 <NAME>

Permission is hereby granted, free of charge, to any person obtaining a copy<commit_msg>Minor update to readme.md<commit_after>YKTwitterHelper
===============

Blocks based Twitter Auth and ReverseAuth to fetch `oauth_access_token` and `oauth_token_secret`. 

### Overview

This is basically a refactor of Sean Cook's [https://github.com/seancook/TWReverseAuthExample](https://github.com/seancook/TWReverseAuthExample) to make it super easy to use by simply dragging and dropping to a project. 

There are literally 3 small steps from setup to getting your `oauth_access_token` and `oauth_token_secret` from Twitter.

### How To Use

1) Drag and drop **YKTwitterHelper** folder to your project.

2) Create an instance: 
    
    YKTwitterHelper *twitterHelper = [[YKTwitterHelper alloc] initWithKey:kTWConsumerKey 
    															andSecret:kTWConsumerSecret];
    											
3) Use following method get `oauth_access_token` and `oauth_token_secret` via **reverse auth** as below:

	[twitterHelper reverseAuthWithSuccess:^(NSDictionary *data) {
        NSLog (@"%@", [data descriptionInStringsFileFormat]);
    } failure:^(NSError *error) {
        NSLog (@"%@", error.description);
    }];

   Or to simply get user authorization to access Twitter accounts configured in the system use this method instead:

	[twitterHelper authWithSuccess:^(ACAccount *account) {
		NSLog (@"%@", [NSString stringWithFormat:@"User: %@ authorized", account.accountDescription]);
	} failure:^(NSError *error) {
        NSLog (@"%@", error.description);
    }];
    

###  License

The MIT License (MIT)

Copyright (c) 2014 <NAME>

Permission is hereby granted, free of charge, to any person obtaining a copy
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.005036197670758577, 'mean_word_length': 4.323283082077052, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '434127', 'n_tokens_mistral': 1006, 'n_tokens_neox': 895, 'n_words': 302}