rfc-0.0.0.16: Robert Fischer's Common library

Safe HaskellNone
LanguageHaskell2010

RFC.Client.Coinhive

Description

Client to access API of Coinhive: https://coinhive.com/documentation/http-api

Synopsis

Documentation

type API = TokenVerify :<|> (UserBalance :<|> (UserWithdraw :<|> (UserTop :<|> (UserList :<|> UserReset)))) Source #

The unification of the various endpoints.

type UserBalance = "user" :> ("balance" :> (QueryParam "secret" SecretKey :> (QueryParam "name" String :> JGet UserCurrentBalance))) Source #

type UserTop = "user" :> ("top" :> (QueryParam "secret" SecretKey :> (QueryParam "count" Integer :> (QueryParam "order" UserOrdering :> JGet UserTopReport)))) Source #

type UserList = "user" :> ("list" :> (QueryParam "secert" SecretKey :> (QueryParam "count" Integer :> (QueryParam "page" String :> JGet UserListReport)))) Source #

baseUrl :: BaseUrl Source #

The URL prefix used for Coinhive's API