extralife-0.1.0.1: API Client for ExtraLife team and user data

Safe HaskellNone
LanguageHaskell2010

Web.ExtraLife.API

Contents

Description

The ExtraLife API is extremely simple, providing interfaces to fetch user information, user donations, team information and team membership lists. All reference IDs are of type Int, and non-basic types are unnecessary to represent the data returned from the API.

Synopsis

Interfaces to the remote API

userInfo :: Int -> IO (Maybe User) Source #

Fetches a given user's information, given a UID

recentDonations :: Int -> IO (Maybe [Donation]) Source #

Fetches all recent donations for a given user

teamInfo :: Int -> IO (Maybe Team) Source #

Fetches all information about a team except for members, given a Team ID

teamMembers :: Int -> IO (Maybe [TeamMember]) Source #

Fetches members of a team, if any, given a Team ID