Giter Club home page Giter Club logo

crowdtiltopen's Introduction

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')

crowdtiltopen's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crowdtiltopen's Issues

Failed Payments Admin

If a payment fails, there's no good way to see that it has failed & contact the contributor to try again. Perhaps you could make an interface for this?

[Feature Request] Allow an image to be associated with each Reward

For each reward, (along with Minimal Amount, description, title, estimated delivery etc.) you could also allow the admin to upload an image which can be placed either to the left or right of that reward block.

In effect contributors can gasp the Reward offerings easily by looking at the images.

Ability to preview sections from admin page

Right now, there exists descriptions for each field in the campaign admin form.

It would be nice if there was a "?" in the top right of each field section that, when clicked, popped up a modal with an example image of what the field they are editing looks like on a live campaign page.

Ability to delete and archive campaigns

If campaign has no payments, allow it to be deleted.

If campaign has 1+ payments, allow it to be archived.

(this method is already implemented for reward levels)

Better countdown handling

The countdown is pretty coarse….it will display 1 month to go when there are actually nearly two months…maybe this can be improved?

API Caching/Throttling/Pagination

API requests can potentially put much more load on the server than normal client requests. Clients have run jobs to scrape the API periodically, but as the payments count grows, it can sometimes cause issues.

Show contributors on campaign page

Add a place on the campaign page that shows the people who have contributed.
Maybe this could be done in a tab, and maybe it could be optional for each campaign.

Invalid credentials

I am getting this error on the browser when trying to log in locally:

An error occurred, please contact [email protected]: Invalid credentials

The log only shows http GET entries...

How do I get the error logs with the stacktraces?

Fix sorting of FAQs

The FAQs seem to be displayed in an arbitrary order...can we make sure they get displayed in the order they are added on the backend?

Form Validation

Throughout the site, forms should have basic JS validation

Payment Detail Page with Admin

It would be cool if you could click on a payment & see a detail page of the payer's name, email, address, reward selection, etc...

Bonus points if you could edit these values that page!

Resubmission of payments?

Right now the payment form posts to a confirmation page. This means that if I hit reload, I confirm twice.

Pls 2 fix?

Extra Warning When Changing Goal Amount / Expiration

Changing the goal amount or expiration date for a campaign that is already underway is a dangerous action, as it can negatively affect the perception of existing backers as to the legitimacy of a campaign.

We should add in extra warnings when an admin attempts to change these values to advise them on the potential negative consequences.

Icon for Mobile Device Bookmarks

There should be an image set for each site that display when the site is added as a homepage bookmark on a mobile device. iOS and Android both support this.

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.