Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pedrorijo91/yo-scala-client
Yo API Scala client
https://github.com/pedrorijo91/yo-scala-client
Last synced: 1 day ago
JSON representation
Yo API Scala client
- Host: GitHub
- URL: https://github.com/pedrorijo91/yo-scala-client
- Owner: pedrorijo91
- License: mit
- Created: 2016-01-03T18:38:45.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-13T22:01:16.000Z (almost 9 years ago)
- Last Synced: 2024-05-11T18:53:46.894Z (6 months ago)
- Language: Scala
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Yo-scala-client
[![Build Status](https://travis-ci.org/pedrorijo91/yo-scala-client.svg?branch=master)](https://travis-ci.org/pedrorijo91/yo-scala-client) [![Download](https://api.bintray.com/packages/pedrorijo91/maven/yo-scala-client/images/download.svg)](https://bintray.com/pedrorijo91/maven/yo-scala-client/_latestVersion) [![Codacy Badge](https://api.codacy.com/project/badge/grade/84d510245e42422c8691aea5f38a73dc)](https://www.codacy.com/app/pedrorijo91/yo-scala-client) [![Codacy Badge](https://api.codacy.com/project/badge/coverage/84d510245e42422c8691aea5f38a73dc)](https://www.codacy.com/app/pedrorijo91/yo-scala-client)
---
### yo-scala-client
Yo-scala-client is a client for [Yo API](http://docs.justyo.co/docs/) written in Scala.
Currently only supports [API Tokens Endpoints](http://docs.justyo.co/docs/api-tokens) but working to support the new [REST API](http://docs.justyo.co/docs/oauth).
### Usage
Add the correct resolver and dependency:
```
resolvers += Resolver.jcenterRepolibraryDependencies ++= Seq("com.pedrorijo91" % "yo-scala-client_2.11" % "1.0.0")
``````scala
val client = new YoClient("")val response = client.numberSubscribers
```Responses are always an `Either[E, T]`.
`Left` returns the error code, the message returned by the API, and in some cases still extra information
`Right`returns information retuned by API for correct requests
### Contributing
Check [CONTRIBUTING.md](CONTRIBUTING.md)
### Issue tracking
After checking already reported issues, report your issues to [Github issues](https://github.com/pedrorijo91/yo-scala-client/issues)