Giter Site home page Giter Site logo

vishalpolley / date-info Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prabhakar267/date-info

0.0 1.0 0.0 222 KB

Date Info is a simple API developed in PHP which let's the user fetch the events in JSON format which happened or would happen on a specific date. API takes 3 parameters as date in date, month and year format.

PHP 100.00%

date-info's Introduction

Date Info

This is a simple API which let's the user fetch the events in JSON format which happened or would happen on a specific date. API takes 3 parameters as date in date, month and year format.

Parameter Value
date date of month in DD or D format
month month in MM or M format
year year in YYYY format

Response

Key Meaning Possible Values
status_code It gives the status of the data recieved by the user. If the data is correctly provided, then status code is 200 else it is 400 along with the message 200 , 400
success It basically helps in checking whether the data is recieved or not, as of now this can be ignored since one can check the same using the status code true , false
message If the success flag is false, this parameter gives the reason why the data is not recieved string
day_of_week If the success flag is true, then day_of_week gives the day of week on the date provided in input as a string Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
month_string If the success flag is true, then month_string gives the month in the date provided in input as a string January, February, March, April, May, June, July, August, September, October, November, December
time If the success flag is true, then time and the date provided in the parameters is before the current / present date, then this flag is set to false else this flag is true true , false
events This returns all the events on the specified date as an array if the success flag is true JSON array

Successful response

successful response


Unsuccessful response

unsuccessful response


date-info's People

Contributors

prabhakar267 avatar vishalpolley avatar

Watchers

 avatar

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.