mirror of
https://github.com/holidayapi/holidayapi-python.git
synced 2025-06-21 04:16:32 +00:00
Merge pull request #1 from zachyordy/documentation-changes
Minor Fixes to README.md
This commit is contained in:
commit
5fabca70a2
1 changed files with 12 additions and 12 deletions
24
README.md
24
README.md
|
@ -4,7 +4,7 @@ Official Python library for Holiday API
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pip install holidayapi
|
pip install python-holidayapi
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -15,17 +15,17 @@ import holidayapi
|
||||||
hapi = holidayapi.v1('_YOUR_API_KEY_')
|
hapi = holidayapi.v1('_YOUR_API_KEY_')
|
||||||
|
|
||||||
parameters = {
|
parameters = {
|
||||||
# Required
|
# Required
|
||||||
country: 'US',
|
'country': 'US',
|
||||||
year: 2016,
|
'year': 2016,
|
||||||
# Optional
|
# Optional
|
||||||
# month: 7,
|
# 'month': 7,
|
||||||
# day: 4,
|
# 'day': 4,
|
||||||
# previous: true,
|
# 'previous': True,
|
||||||
# upcoming: true,
|
# 'upcoming': True,
|
||||||
# public: true,
|
# 'public': True,
|
||||||
# pretty: true,
|
# 'pretty': True,
|
||||||
}
|
}
|
||||||
|
|
||||||
holidays = hapi.holidays(parameters);
|
holidays = hapi.holidays(parameters)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue