Giter Club home page Giter Club logo

mcapi2-ruby-examples's Introduction

MailChimp API v2.0 Ruby Example Application

An example application utilizing our official Ruby API wrapper. The purpose of the app is to demo setting up the wrapper in a common environment, make some basic API calls against our API, and consume/display the results. This will not necessarilly show an example of every available method or the numerous permutations of each. For that, the developer will be expected to refer to the the API v2 docs and wrapper source to test calls. This, however, should provide a simple framework to kickstart testing.

Community

Unlike our official API wrapper which is generated and thus non-conducive to pull requests, we'll be happy to consider them to:

  • update existing examples
  • add new basic functionality, especially for calls that you've found non-trivial
  • foster best practices for the language

Just please remember this is intended as a beginner's demo, so please try to keep things organized and K.I.S.S..

Installation

Generally, these steps should suffice to install and run the examples contained here.

  • Clone the repo or download the example code and put it ... somewhere.
  • run bundle install to have dependencies installed
  • edit app/controllers/application_controller.rb. Inside the single quotes, paste your MailChimp API Key into @mc = Mailchimp::API.new('00000000000000000000000000000000-us1') replacing the placeholder API Key.
  • run rails server
  • point your web browser at http://0.0.0.0:3000/ and poke around

mcapi2-ruby-examples's People

Contributors

jessedp avatar kale-mc avatar

Watchers

 avatar  avatar

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.