Giter Site home page Giter Site logo

johnjohndoe / halfnarpclient Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 571 KB

A Java library containing a parser and models for the Halfnarp API.

Home Page: https://github.com/johnjohndoe/HalfnarpClient

License: Apache License 2.0

Java 100.00%
halfnarp-api halfnarp scr ccc java retrofit2 jackson sha schedule sha2017

halfnarpclient's Introduction

Build Status Apache License Known Vulnerabilities

Halfnarp Client

A Java library containing a parser and models for the Halfnarp API available here:

The source code of the API can be found here:

Demo application

Please note there is a Android demo application for this library available:

Usage

The library can be accessed via the ApiModule class.

TalkPreferencesService service = ApiModule.getTalkPreferencesService(final String baseUrl);

Call<List<GetTalksResponse>> getTalksCall = service.getTalks();
// Execute getTalks call to send a request to the webserver.

Call<CreateTalkPreferencesSuccessResponse> createTalkPreferencesSuccessResponseCall =
                mService.createTalkPreferences(talkIds);
// Execute createTalkPreferencesSuccessResponse call to send a request to the webserver.

Call<UpdateTalkPreferencesSuccessResponse> updateTalkPreferencesSuccessResponseCall =
                mService.updateTalkPreferences(uniqueId, talkIds);
// Execute updateTalkPreferencesSuccessResponse call to send a request to the webserver.

Call<GetTalkPreferencesSuccessResponse> getTalkPreferencesSuccessResponseCall =
                mService.getTalkPreferences(uniqueId);
// Execute getTalkPreferencesSuccessResponse call to send a request to the webserver.

Make sure to define the following packagingOptions in the build.gradle of you app.

packagingOptions {
    pickFirst "META-INF/LICENSE"
    pickFirst "META-INF/NOTICE"
}

Gradle build

To deploy the library to your local Maven repository run the following task:

$ ./gradlew publishToMavenLocal

Then, to use the library in your project add the following to your top level build.gradle:

allprojects {
    repositories {
        mavenLocal()
    }
}

and to your application module build.gradle:

dependencies {
    implementation "info.metadude.java.library.halfnarp:halfnarp-client:$version"
}

Tests

Run the following command to execute all tests:

$ ./gradlew clean test

Which applications are using this library?

Author

License

Copyright 2015 - 2022 Tobias Preuss

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

halfnarpclient's People

Contributors

johnjohndoe avatar ligi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ligi

halfnarpclient's Issues

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.