Giter Club home page Giter Club logo

unistats's Introduction

Unistats

This is a very simple API library for the Higher Education Funding Council for England (HEFCE) Unistats API, which provides a range of information about higher education institutions and courses in the United Kingdom.

Unistats provides information via the API which this uses, as well as in downloadable XML form. You can find out more about the data here.

I should be tested, but I'm not. However, this is so simple and my skills so lacking that I can't be bothered to do it.

Getting an API key

You can sign up for an API key for the API instantly from the Unistats website. All you have to provide is an email address and password and you'll get an API key which you can pass into this right away. To sign up, click here.

Using the library

First, you'll need to install the library. You can do this from the command line:

gem install unistats

Alternatively, you can let Bundler handle things for you using your Gemfile...

echo "gem 'unistats'" >> Gemfile
bundle install

It's then very easy to use indeed. All you need to do is require the Gem into your script (usually), initialize an instance of Unistats class, passing in your API key to the constructor and then play to your heart's content:

require 'unistats'

api = Unistats.new("<an API key>")
api.institutions # Get the first 25 institutions alphabetically from the API

If you'd like a bit more information on how things work, check out examples/unistats.rb.

Documentation

There's not that much need for it, but you can view full documentation on all the methods in the library in the RDoc documentation hosted on GitHub here. If you'd like, you can generate this yourself by running rdoc.

Acknowledgements

This very simple and easily improvable gem was created by Tim Rogers in a couple of hours on 14th October 2012. It is released under the MIT License - see the LICENSE file for more information.

unistats's People

Watchers

James Cloos avatar Eiz Eddin A. 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.