All Projects → sameerkumar18 → Aztro

sameerkumar18 / Aztro

Licence: apache-2.0
The Astrology API 💫 Get daily horoscope!

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Aztro

Standards.rest
A collection of standards, specifications, etc. for HTTP API development.
Stars: ✭ 58 (-25.64%)
Mutual labels:  api, rest-api, restful-api
Api Strategy
Equinor API Strategy
Stars: ✭ 56 (-28.21%)
Mutual labels:  api, rest-api, restful-api
Clevergo
👅 CleverGo is a lightweight, feature rich and high performance HTTP router for Go.
Stars: ✭ 246 (+215.38%)
Mutual labels:  api, rest-api, restful-api
Openapi Generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
Stars: ✭ 10,634 (+13533.33%)
Mutual labels:  api, rest-api, restful-api
Apidoc
RESTful API 文档生成工具,支持 Go、Java、Swift、JavaScript、Rust、PHP、Python、Typescript、Kotlin 和 Ruby 等大部分语言。
Stars: ✭ 785 (+906.41%)
Mutual labels:  api, rest-api, restful-api
Proteus
Lean, mean, and incredibly fast JVM framework for web and microservice development.
Stars: ✭ 178 (+128.21%)
Mutual labels:  api, rest-api, restful-api
Spacex Api
🚀 Open Source REST API for SpaceX launch, rocket, core, capsule, starlink, launchpad, and landing pad data.
Stars: ✭ 8,973 (+11403.85%)
Mutual labels:  api, rest-api, restful-api
Open Rest
Standard rest server, Base on restify and sequelize
Stars: ✭ 136 (+74.36%)
Mutual labels:  api, rest-api, restful-api
Jokeapi
A REST API that serves uniformly and well formatted jokes in JSON, XML, YAML or plain text format that also offers a great variety of filtering methods
Stars: ✭ 71 (-8.97%)
Mutual labels:  api, rest-api, restful-api
Koa2 Api Scaffold
一个基于Koa2的轻量级RESTful API Server脚手架。
Stars: ✭ 694 (+789.74%)
Mutual labels:  api, rest-api, restful-api
Restful Api With Laravel Definitive Guide
Repository with the base code for the course "RESTful API with Laravel - Definitive-Guide"
Stars: ✭ 156 (+100%)
Mutual labels:  api, rest-api, restful-api
E Commerce 2 django
Guest register, user register, user login, user logout, account home page, product view history, change password, reset password, change name, send activation email when register, resend activation email, add shipping address, add billing address, add nickname to the addresses, edit shipping address, edit billing address, view list of your addresses, reuse shipping addresses when order products, reuse billing addresses when ordeer products, show sales analytics if staff or admin only using -chart.js-, get analytics data with Ajax, receive marketing email, change if user will receive marketing email or not by admin, send contact message with Ajax, products list, product detail, download product detail as a PDF file, download digital product files -if the user purchased that digital product only-, orders list, list of digital products files, order detail, download order detail as a PDF file, verify order ownership with Ajax -to secure order detail page-, show cart products, add or remove product from cart, checkout page, thanks page when order placed successfully, add or reuse payment method, add or reuse payment method with Ajax, search products by title, search products by description, search products by price, search products by tag title, write tags for products -by admin only-, auto fill contact email, full name if user logged in.
Stars: ✭ 20 (-74.36%)
Mutual labels:  api, rest-api, restful-api
Appkernel
API development made easy: a smart Python 3 API framework
Stars: ✭ 152 (+94.87%)
Mutual labels:  api, rest-api, restful-api
Graphql2rest
GraphQL to REST converter: automatically generate a RESTful API from your existing GraphQL API
Stars: ✭ 181 (+132.05%)
Mutual labels:  api, rest-api, restful-api
Node Express Mongoose Passport Jwt Rest Api Auth
Node, express, mongoose, passport and JWT REST API authentication example
Stars: ✭ 146 (+87.18%)
Mutual labels:  api, rest-api, restful-api
Http Fake Backend
Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: ✭ 253 (+224.36%)
Mutual labels:  api, rest-api, restful-api
Api Restful Con Laravel Guia Definitiva
Repositorio para el código base del curso "API RESTful con Laravel - Guía Definitiva"
Stars: ✭ 95 (+21.79%)
Mutual labels:  api, rest-api, restful-api
Restful Api Guidelines
A model set of guidelines for RESTful APIs and Events, created by Zalando
Stars: ✭ 1,397 (+1691.03%)
Mutual labels:  api, rest-api, restful-api
Datafire
A framework for building integrations and APIs
Stars: ✭ 487 (+524.36%)
Mutual labels:  api, rest-api, restful-api
Ngx Restangular
Restangular for Angular 2 and higher versions
Stars: ✭ 787 (+908.97%)
Mutual labels:  api, rest-api, restful-api

################################# aztro - The astrology API ################################# Free and open API. Needs no authentication |Travis| |Docs| |Maintenance yes| |SayThanks| |Paypal|

.. image:: https://github.com/sameerkumar18/aztro/raw/master/aztro-bg.png :height: 412px :width: 898px :alt: aztro api logo :align: center

What is aztro?

aztro REST API allows developers to access and integrate the functionality of aztro with other applications. The API retrieves daily horoscopes for yesterday, today, and tomorrow.

Feel free to contribute on Github <http://github.com/sameerkumar18/aztro>_.

Why aztro?

aztro is for a developer who wants an API that provides horoscope info for sun signs such as Lucky Number, Lucky Color, Mood, Color, Compatibility with other sun signs, description of a sign for that day etc.

URL

.. code-block:: python

POST: https://aztro.sameerkumar.website

Parameters

sign : Name of the sign.

List of all signs - aries, taurus, gemini, cancer, leo, virgo, libra, scorpio, sagittarius, capricorn, aquarius and pisces.

day : Day can be today,tomorrow or yesterday

Usage

.. code-block:: text

POST: https://aztro.sameerkumar.website?sign= <sign> &day= <day>

Example

The following example is for sun sign aries -

cURL ^^^^ .. code-block:: python

curl -X POST \
'https://aztro.sameerkumar.website/?sign=aries&day=today'

Python ^^^^^^ .. code-block:: python

import requests

params = (
('sign', 'aries'),
('day', 'today'),
)

requests.post('https://aztro.sameerkumar.website/', params=params)

Node.js ^^^^^^^ .. code-block:: javascript

var request = require('request');

var options = {
url: 'https://aztro.sameerkumar.website/?sign=aries&day=today',
method: 'POST'
};

function callback(error, response, body) {
if (!error && response.statusCode == 200) {
    console.log(body);
}
}

request(options, callback);

PHP ^^^ .. code-block:: php

<?php

    //This function can be used in any PHP framework like laravel, wordpress, drupal, cakephp etc.

    function aztro($sign, $day) {
        $aztro = curl_init('https://aztro.sameerkumar.website/?sign='.$sign.'&day='.$day);
        curl_setopt_array($aztro, array(
            CURLOPT_POST => TRUE,
            CURLOPT_RETURNTRANSFER => TRUE,
            CURLOPT_HTTPHEADER => array(
                'Content-Type: application/json'
            )
        ));
        $response = curl_exec($aztro);
        if($response === FALSE){
            die(curl_error($aztro));
        }
        $responseData = json_decode($response, TRUE);
        return $responseData;
    }

    $ObjData = aztro('aries', 'today');
    var_dump($ObjData);

?>

jQuery Ajax ^^^^^^ .. code-block:: javascript

$.ajax({

type:'POST', url:'https://aztro.sameerkumar.website?sign=aries&day=today', success:function(data){ console.log(data); } });

ECMAScript (ES6) ^^^^^^ .. code-block:: javascript

const URL = 'https://aztro.sameerkumar.website/?sign=aries&day=today';
fetch(URL, {
    method: 'POST'
})
.then(response => response.json())
.then(json => {
    const date = json.current_date;
    console.log(date);
});

Vue.JS using axios ^^^^^^^^^^^^^^^^^^ .. code-block:: html

<ul id="aztro">
    <li>Current Date: {{data.current_date}}</li>
    <li>Compatibility: {{data.compatibility}}</li>
    <li>Lucky Number: {{data.lucky_number}}</li>
    <li>Lucky Time: {{data.lucky_time}}</li>
    <li>Color: {{data.color}}</li>
    <li>Date Range: {{data.date_range}}</li> 
    <li>Mood: {{data.mood}}</li>
    <li>Description: {{data.description}}</li>
</ul>

.. code-block:: javascript

const URL = 'https://aztro.sameerkumar.website/?sign=aries&day=today';
new Vue({
    el: '#aztro',
    data() {
            return {
            data: {}
        }
    },
    created() {
        axios.post(URL).then((response) => {
            this.data = response.data
        })
    }
})

ReactJS with ES6 ^^^^^^ .. code-block:: jsx

import React, { Component } from 'react';

class Aztro extends Component {
    constructor(props){
        super(props);
        this.state = {
          json: {}
        }
    }
    
    componentDidMount () {
        const URL = 'https://aztro.sameerkumar.website/?sign=aries&day=today';
        fetch(URL, {
            method: 'POST'
        }).then(response => response.json())
        .then(json => { this.setState({json}); });
    }
    
    render() {
        return (
          <div>
              Current Date: {this.state.json.current_date} <br />
              Compatibility: {this.state.json.compatibility} <br />
              Lucky Number: {this.state.json.lucky_number} <br />
              Lucky Time: {this.state.json.lucky_time} <br />
              Color: {this.state.json.color} <br />
              Date Range: {this.state.json.date_range} <br />
              Mood: {this.state.json.mood} <br />
              Description: {this.state.json.description} <br />
          </div>
        );
    }
}

export default Aztro;

Response ^^^^^^^^ .. code-block:: json

{"current_date": "June 23, 2017", "compatibility": " Cancer", "lucky_time": " 7am",
 "lucky_number": " 64", "color": " Spring Green", "date_range": "Mar 21 - Apr 20",
 "mood": " Relaxed", "description": "It's finally time for you to think about just
  one thing: what makes you happy. Fortunately, that happens to be a person who feels
  the same way. Give yourself the evening off. Refuse to be put in charge of anything."}

Tests

.. code-block:: text

pip install nose
nosetests tests

Projects using aztro API

.. raw:: html

</table>

Used aztro API in your project? Check out the contributing guidelines <https://github.com/sameerkumar18/aztro/blob/master/contributing.md>_ for this list and let us know. we love PRs :)

API Wrappers

For Python - PyAztro <https://github.com/sameerkumar18/pyaztro>_ (pip install pyaztro)

For NodeJS - aztro-js <https://github.com/srijitcoder/aztro-js>_ (npm install aztro-js)

License

2021 Sameer Kumar

Licensed under the Apache License, Version 2.0 (the "License");

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

Contact

Questions? Suggestions? Feel free to contact me at [email protected]

Buy me a coffee 🥤

If this project helped you reduce the development time, please consider donating :)

.. image:: https://i.giphy.com/media/513lZvPf6khjIQFibF/giphy.webp :target: https://www.buymeacoffee.com/sameerkumar

Credits

"aztro" was created by Sameer Kumar <https://sameerkumar.website>_ and these awesome individual contributors <https://github.com/sameerkumar18/aztro/graphs/contributors>_

Source of horoscope updates - http://astrology.kudosmedia.net/

Please feel free to use and adapt this small API.

.. |Docs| image:: https://readthedocs.org/projects/aztro/badge/?version=latest :target: https://aztro.readthedocs.io/en/latest/?badge=latest

.. |Maintenance yes| image:: https://img.shields.io/badge/Maintained%3F-yes-green.svg :target: https://gitHub.com/sameerkumar18/pyaztro

.. |Travis| image:: https://travis-ci.org/sameerkumar18/aztro.svg?branch=master :target: https://travis-ci.org/sameerkumar18/aztro

.. |SayThanks| image:: https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg :target: https://saythanks.io/to/sameer18051998%40gmail.com

.. |Paypal| image:: https://img.shields.io/badge/Paypal-Donate-blue.svg :target: https://www.buymeacoffee.com/sameerkumar

.. Indices and tables .. ==================

.. * :ref:genindex .. * :ref:modindex .. * :ref:search

Repository Description
Community Driven Radio A radio station driven by the community
Horoscope Apple Watch App Apple Watch Application for Horoscope
Your Daily Horoscope React app which shows your daily horoscope
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].