#forismatic-api-java
Forismatic.com API client for Java. It's a simple way to get most inspirational quotes. With this library you can get best quotes of famous people.
To get a Quote object you need to call getQuote() method:
Quote quote = new Forismatic().getQuote();
API supports English & Russian languages. The default language for quotes is Russian. You can change it by putting constant to constructor:
Quote quote = new Forismatic(Forismatic.ENGLISH).getQuote();
or call setLanguage() method:
Forismatic forismatic = new Forismatic();
forismatic.setLanguage();
Quote quote = forismatic.getQuote();
To get quote text and author, call getQuoteText() and getQuoteAuthor() methods:
String quoteText = quote.getQuoteText();
String quoteAuthor = quote.getQuoteAuthor();
To use this library in your project, just add Forismatic.java class or jar file. Download forismatic-api-java jar
###For Android developers
To use this library you need the minimum api level 8. Also add the following to your Manifest:
<uses-permission android:name="android.permission.INTERNET"/>
###Applications using forismatic-api-java
License
Copyright 2014, 2015 Boris Korogvich 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.