Description
Simple Horoscope Library to fetch the horoscope based on zodiac and date
Horoscope-API alternatives and similar packages
Based on the "SDK" category.
Alternatively, view Horoscope-API alternatives based on common mentions on social networks and blogs.
-
Android-ReactiveLocation
Small library that wraps Google Play Service API in brilliant RxJava Observables reducing boilerplate to minimum. -
LandscapeVideoCamera
Powerful custom Android Camera with granular control over the video quality and filesize, restricting recordings to landscape only. -
Applozic-Android-Chat-Messaging-SDK
DISCONTINUED. Official Android SDK for Applozic Real-time Chat & Messaging. Powerful client, offline support, and UI component libraries for awesome in-app chat features. -
WeatherLib
Android Weather Library: android weather lib to develop weather based app fast and easily -
android-donations-lib
Donations library for Android. Supports Google Play Store, Flattr, PayPal, and Bitcoin -
Office-365-SDK-for-Android
DISCONTINUED. Microsoft Services SDKs for Android produced by MS Open Tech. -
LinkedIn-SDK-Android
A lightweight android library to implement Login with LinkedIn in your Android app.
SaaSHub - Software Alternatives and Reviews
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Horoscope-API or a related project?
README
Horoscope-API.
Simple Java API to get the horoscope according to the sunsign.
Contents
Features
Implementation
API Usage
To-dos
Credits
License
Features
Get Horoscope based on sunsign Get Horoscope for today, weekly, monthly & yearly
Implementation
Library is available on JCenter, simply add the following line in your app build.gradle
implementation'the.bot.box:horoscope-api:{latest-version}'
where {latest-version}
corresponds to latest published version
API Usage
To request for any horoscope, simply call,
Horoscope hGemini = new Horoscope.Zodiac(mContext)
.requestSunSign(SUNSIGN.GEMINI)
and also, don't forget to request for duration of horoscope simultaneously i.e TODAY, WEEKLY, MONTHLY, YEARLY
request for it like below,
Horoscope hGemini = new Horoscope.Zodiac(mContext)
.requestSunSign(SUNSIGN.GEMINI).
.requestDuration((DURATION.TODAY)
therefore, the final request will may seem like the one below,
Horoscope hGemini = new Horoscope.Zodiac(MainActivity.this)
.requestSunSign(SUNSIGN.GEMINI)
.requestDuration(DURATION.TODAY)
.showLoader(true)
.isDebuggable(true)
.fetchHoroscope();
Mandatory Functions
requestSunSign(SUNSIGN)
Access all the zodiacs like this SUNSIGN.ARIES
SUNSIGN.TAURUS
SUNSIGN.GEMINI
SUNSIGN.CANCER
... SUNSIGN.PISCES
requestDuration(DURATION)
Access duration like this DURATION.TODAY
DURATION.TOMORROW
DURATION.WEEK
DURATION.YEAR
Not calling above two function will throw IllegalStateException()
Optional Functions
showLoader(boolean)
- pass true
in param to displays a loader when fetching horoscope from server, by default its disable.
isDebuggable(boolean)
- pass true
to enable library logs & exception printStackTrace() or else they are disabled
calling both the above function is totally optional and default value for both is false
Handling Response
Horoscope hGemini = new Horoscope.Zodiac(MainActivity.this)
.requestSunSign(SUNSIGN.GEMINI)
.requestDuration(DURATION.TODAY)
.showLoader(true)
.isDebuggable(true)
.fetchHoroscope();
HorologyController cGemini = new HorologyController(new Response() {
@Override
public void onResponseObtained(Zodiac zodiac) {
String horoscope = zodiac.getHoroscope();
String sunsign = zodiac.getSunSign();
String date = zodiac.getDate();
}
@Override
public void onErrorObtained(String errormsg) {
}
});
cGemini.requestConstellations(hGemini);
where, String horoscpe
is the response from the server correspoding to the sunsign requested;
String sunsign
is the same sunsign for which request has been made;
String date
is the same duration for which request has been made.
In case of no internet connection, callback will come in onErrorObtained()
with errormsg "No internet connection"
To-Dos
Conversion to kotlin
Facts About a Sunsign
Practical Side of a Sunsign
Astrological Perspective of a Sunsign
Credits
This java library is working on top of Horoscope-API by Tapasweni Pathak
License
Copyright (c) 2020 TheBotBox
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without
limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to
whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions
of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE,ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
*Note that all licence references and agreements mentioned in the Horoscope-API README section above
are relevant to that project's source code only.