https://github.com/prabhakar267/date-info
API to let user fetch the events that happened on a specific date
https://github.com/prabhakar267/date-info
api date date-information date-time date-time-input information-retrieval php
Last synced: about 1 year ago
JSON representation
API to let user fetch the events that happened on a specific date
- Host: GitHub
- URL: https://github.com/prabhakar267/date-info
- Owner: prabhakar267
- Created: 2015-07-15T12:00:12.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-10-24T14:03:34.000Z (over 8 years ago)
- Last Synced: 2025-03-26T09:04:22.866Z (about 1 year ago)
- Topics: api, date, date-information, date-time, date-time-input, information-retrieval, php
- Language: PHP
- Homepage:
- Size: 220 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 day in date, month and year format.
| Parameter | Value |
|---|---|
| day | day of month in DD or D format |
| month | month in MM or M format |
| year | year in YYYY format |
* * * *
Response
| Key | Meaning | Possible Values |
|---|---|---|
| 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

* * * *
## Unsuccessful response

* * * *