Giter VIP home page Giter VIP logo

Crowdtilt API Ruby Client

An extremely light-weight ruby-based http client for the Crowdtilt API

For the latest information on this project, take a look at:

##Usage Examples##

###Including the gem in your Gemfile###

gem 'crowdtilt'

###Initializing the client### Your api_key / api_secret is required to initialize the client. Please email [[email protected]](mailto: [email protected]) to request credentials.

You should specify with the mode parameter whether you are attempting to access the sandbox API or the production API.

Crowdtilt.configure :api_key => YOUR_API_KEY,
                    :api_secret => YOUR_API_SECRET,
                    :mode => API_MODE   # 'sandbox' or 'production'

###API methods###

Responses are returned as hashes.

Errors returned by the API will be raised as exceptions.

Examples:

Create a user:

user = Crowdtilt.create_user({
  :firstname => 'John',
  :lastname => 'Smith',
  :email => '[email protected]'
})

Get a list of users:

users = Crowdtilt.get_users

Get a specific of user:

user = Crowdtilt.get_user('USR123')

Update a user:

user = Crowdtilt.update_user('USR123', { :email => '[email protected]' })

Raw requests:

You can make raw requests by invoking the lower level api methods get, post, and put. See Crowdtilt's API documentation for more information about the list of available resources. Methods are called by simply passing in the URI of the resource you are accessing, along with any needed data as a hash object.

Create a user:

user = {
  :firstname => 'John',
  :lastname => 'Smith',
  :email => '[email protected]'
}

response = Crowdtilt.post('/users', { :user => user })

Get a list of users:

response = Crowdtilt.get('/users')

Tilt's Projects

button icon button

Documentation for the Tilt button (beta)

crowdtilt-gem icon crowdtilt-gem

An extremely light-weight ruby-based http client for the Crowdtilt API

sanitize icon sanitize

Whitelist-based Ruby HTML and CSS sanitizer.

wysihtml5 icon wysihtml5

Open source rich text editor based on HTML5 and the progressive-enhancement approach. Uses a sophisticated security concept and aims to generate fully valid HTML5 markup by preventing unmaintainable tag soups and inline styles.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.