An open API service indexing awesome lists of open source software.

https://github.com/kiris/zaim4s

Zaim API binding library for the Scala language.
https://github.com/kiris/zaim4s

scala zaim

Last synced: 5 months ago
JSON representation

Zaim API binding library for the Scala language.

Awesome Lists containing this project

README

          

# zaim4s
[![Build Status](https://travis-ci.org/kiris/zaim4s.svg?branch=master)](https://travis-ci.org/kiris/zaim4s)

This is a `Zaim API` binding library for the Scala language.

https://dev.zaim.net

supported scala version is `2.11.x` `2.12.x`

## Setup
Edit file `project/Build.scala` or `build.sbt`
```scala
resolvers += "Sonatype releases" at "https://oss.sonatype.org/content/repositories/releases/"

libraryDependencies += "com.github.kiris" %% "zaim4s" % "0.1.2"
```

## Usage

```scala
import com.github.kiris.zaim4s.Zaim
import org.asynchttpclient.oauth.{ConsumerKey, RequestToken}

import scala.concurrent.ExecutionContext.Implicits.global

val zaim = Zaim(
new ConsumerKey(
"",
""
),
new RequestToken(
"",
""
)
)

// Showing the list of input data.
zaim.getMoneys(limit = 5)

// Showing the list of input data group by receipt id.
zaim.getMoneysGroupByReceiptId(limit = 5)
```

## License

Apache License, Version 2.0

Copyright 2017 Yoshiaki Iwanaga [@kiris](https://twitter.com/kiris)