<commit_before># LinkedIn OAuth 2.0
[![Build Status](https://travis-ci.org/emorikawa/linkedin-oauth2.svg?branch=master)](https://travis-ci.org/emorikawa/linkedin-oauth2)
[![Coverage Status](https://coveralls.io/repos/emorikawa/linkedin-oauth2/badge.png)](https://coveralls.io/r/emorikawa/linkedin-oauth2)
[![Code Climate](https://codeclimate.com/github/emorikawa/linkedin-oauth2/badges/gpa.svg)](https://codeclimate.com/github/emorikawa/linkedin-oauth2)
[![Dependency Status](https://gemnasium.com/emorikawa/linkedin-oauth2.svg)](https://gemnasium.com/emorikawa/linkedin-oauth2)

OAuth 2.0 Ruby wrapper for the [LinkedIn API](http://developer.linkedin.com).

If you are using OAuth 1.0, see the [hexgnu/linkedin](https://github.com/hexgnu/linkedin)

If you are upgrading from the oauth2-v0.1.0 version of this gem, see the
[upgrade notes](#upgrading) below.

# Installation

In Bundler:

```ruby
gem "linkedin-oauth2", "~> 1.0"
```

Otherwise:

    [sudo|rvm] gem install linkedin-oauth2

# Usage

**[Step 1:](#step-1-register-your-application)** [Register](https://www.linkedin.com/secure/developer) your
application with LinkedIn. They will give you a **Client ID** (aka API
Key) and a **Client Secret** (aka Secret Key)

**[Step 2:](#step-2-getting-an-access-token)** Use your **Client ID** and **Client Secret** to obtain an **Access Token** from some user.<commit_msg>Add Gem Version to Readme<commit_after># LinkedIn OAuth 2.0
[![Gem Version](https://badge.fury.io/rb/linkedin-oauth2.svg)](http://badge.fury.io/rb/linkedin-oauth2)
[![Build Status](https://travis-ci.org/emorikawa/linkedin-oauth2.svg?branch=master)](https://travis-ci.org/emorikawa/linkedin-oauth2)
[![Coverage Status](https://coveralls.io/repos/emorikawa/linkedin-oauth2/badge.png)](https://coveralls.io/r/emorikawa/linkedin-oauth2)
[![Code Climate](https://codeclimate.com/github/emorikawa/linkedin-oauth2/badges/gpa.svg)](https://codeclimate.com/github/emorikawa/linkedin-oauth2)
[![Dependency Status](https://gemnasium.com/emorikawa/linkedin-oauth2.svg)](https://gemnasium.com/emorikawa/linkedin-oauth2)

OAuth 2.0 Ruby wrapper for the [LinkedIn API](http://developer.linkedin.com).

If you are using OAuth 1.0, see the [hexgnu/linkedin](https://github.com/hexgnu/linkedin)

If you are upgrading from the oauth2-v0.1.0 version of this gem, see the
[upgrade notes](#upgrading) below.

# Installation

In Bundler:

```ruby
gem "linkedin-oauth2", "~> 1.0"
```

Otherwise:

    [sudo|rvm] gem install linkedin-oauth2

# Usage

**[Step 1:](#step-1-register-your-application)** [Register](https://www.linkedin.com/secure/developer) your
application with LinkedIn. They will give you a **Client ID** (aka API
Key) and a **Client Secret** (aka Secret Key)

**[Step 2:](#step-2-getting-an-access-token)** Use your **Client ID** and **Client Secret** to obtain an **Access Token** from some user.
{'fraction_non_alphanumeric': 0.17330538085255065, 'fraction_numerical': 0.018867924528301886, 'mean_word_length': 5.3061674008810575, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 21, 'lorem ipsum': 0, 'www.': 2, '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': '152862', 'n_tokens_mistral': 1077, 'n_tokens_neox': 1019, 'n_words': 203}