Sha256: 5167a131dd103150320cde9a221e61bc3edc9a84dceb142ba88928ffe33dcb61

Contents?: true

Size: 1.36 KB

Versions: 15

Compression:

Stored size: 1.36 KB

Contents

# Crowdskout

[![Build Status](https://travis-ci.org/revvco/crowdskout.png?branch=master)](https://travis-ci.org/revvco/crowdskout) [![Gem Version](https://badge.fury.io/rb/crowdskout.svg)](https://badge.fury.io/rb/crowdskout) [![Code Climate](https://codeclimate.com/github/revvco/crowdskout/badges/gpa.svg)](https://codeclimate.com/github/revvco/crowdskout)

A Ruby wrapper for the Crowdskout API.

Crowdskout API documentation can be found [here](http://docs.crowdskout.com/api/#get-the-options-for-a-field)

## Installation

Add this line to your application's Gemfile:

    gem 'crowdskout'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install crowdskout

## Usage

**Example for OAuth provider:**

	require 'crowdskout'

	oauth_provider = Crowdskout::Auth::OAuth2.new(
        :api_key => client_id,
        :api_secret => client_secret,
        :redirect_url => redirect_uri
      ) 

	url = oauth_provider.get_authorization_url("a_state_param")
	
	# after post to URL and granting access
	access_token = oauth_provider.get_access_token(params[:code])

**Example for Crowdskout API:**

	require 'crowdskout'

	api = Crowdskout::Api.new(api_key, access_token)

	# Fetching profiles
	profile = api.get_profile(164)

	# Fetching field options
	field_options = api.get_options_for_a_field("AddressCity")

	# Fetching attributes
	attributes = api.get_attributes

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
crowdskout-0.1.5 README.md
crowdskout-0.1.4 README.md
crowdskout-0.1.3 README.md
crowdskout-0.1.2 README.md
crowdskout-0.1.1 README.md
crowdskout-0.1.0 README.md
crowdskout-0.0.20 README.md
crowdskout-0.0.19 README.md
crowdskout-0.0.13 README.md
crowdskout-0.0.10 README.md
crowdskout-0.0.9 README.md
crowdskout-0.0.8 README.md
crowdskout-0.0.7 README.md
crowdskout-0.0.6 README.md
crowdskout-0.0.5 README.md