<commit_before>[ ![Download](https://api.bintray.com/packages/dakshsrivastava/maven/Loglr/images/download.svg) ](https://bintray.com/dakshsrivastava/maven/Loglr/_latestVersion) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Loglr-green.svg?style=true)](https://android-arsenal.com/details/1/3265)
# Loglr #
### The easiest way to get your user logged in via Tumblr ###

Loglr is an open source library that enables developers to implement 'Login via Tumblr' with as minimum frustration as possible. 

###Dependencies###
```Gradle : compile 'com.daksh:loglr:0.2.1'```

--- OR ---
```
Maven : 
<dependency>
  <groupId>com.daksh</groupId>
  <artifactId>loglr</artifactId>
  <version>0.2.1</version>
  <type>pom</type>
</dependency>
```
###Usage###
```
Loglr.getInstance()
                    //Set your application consumer key from Tumblr
                    .setConsumerKey("ENTER CONSUMER KEY HERE") 
                    
                    //Set your application Secret consumer key from Tumblr
                    .setConsumerSecretKey("ENTER CONSUMER SECRET KEY")
                    
                    //Implement interface to receive Token and Secret Token
                    .setLoginListener(loginListener) 
                    
                    //Interface to receive call backs when things go wrong
                    .setExceptionHandler(exceptionHandler) 
                    
                    //initiate login process and provide a context of Activity
                    .initiate(context); 
```

On overriding the LoginListener, an object of `LoginResult` is received. To extract Token and Secret Token :
```
String strTumblrKey = loginResult.getStrTumblrKey();
String strTumblrSecretKey = loginResult.getStrTumblrSecreyKey();
```

###License###
<one line to give the program's name and a brief idea of what it does.>
    Copyright (C) 2016  <NAME>
<commit_msg>Updated ReadMe to reflect new getter and setter methods for Tokens<commit_after>[ ![Download](https://api.bintray.com/packages/dakshsrivastava/maven/Loglr/images/download.svg) ](https://bintray.com/dakshsrivastava/maven/Loglr/_latestVersion) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Loglr-green.svg?style=true)](https://android-arsenal.com/details/1/3265)
# Loglr #
### The easiest way to get your user logged in via Tumblr ###

Loglr is an open source library that enables developers to implement 'Login via Tumblr' with as minimum frustration as possible. 

###Dependencies###
```Gradle : compile 'com.daksh:loglr:0.2.1'```

--- OR ---
```
Maven : 
<dependency>
  <groupId>com.daksh</groupId>
  <artifactId>loglr</artifactId>
  <version>0.2.1</version>
  <type>pom</type>
</dependency>
```
###Usage###
```
Loglr.getInstance()
                    //Set your application consumer key from Tumblr
                    .setConsumerKey("ENTER CONSUMER KEY HERE") 
                    
                    //Set your application Secret consumer key from Tumblr
                    .setConsumerSecretKey("ENTER CONSUMER SECRET KEY")
                    
                    //Implement interface to receive Token and Secret Token
                    .setLoginListener(loginListener) 
                    
                    //Interface to receive call backs when things go wrong
                    .setExceptionHandler(exceptionHandler) 
                    
                    //initiate login process and provide a context of Activity
                    .initiate(context); 
```

On overriding the LoginListener, an object of `LoginResult` is received. To extract Token and Secret Token :
```
String strOAuthToken = loginResult.getOAuthToken();
String strOAuthTokenSecret = loginResult.getOAuthTokenSecret();
```

###License###
<one line to give the program's name and a brief idea of what it does.>
    Copyright (C) 2016  <NAME>

{'fraction_non_alphanumeric': 0.11079471913020968, 'fraction_numerical': 0.008801449650530676, 'mean_word_length': 2.5287671232876714, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '158263', 'n_tokens_mistral': 1154, 'n_tokens_neox': 1026, 'n_words': 300}