mirror of
https://github.com/holidayapi/holidayapi-python.git
synced 2025-06-21 04:16:32 +00:00
Changed true to True as Python constant. Removed semi-colons as not used in Python. Fixed name of pip package. Put single quotes around parameters as not variables.
This commit is contained in:
parent
9cba09675e
commit
1ab665230a
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
|
||||
|
||||
```shell
|
||||
pip install holidayapi
|
||||
pip install python-holidayapi
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
@ -15,17 +15,17 @@ import holidayapi
|
|||
hapi = holidayapi.v1('_YOUR_API_KEY_')
|
||||
|
||||
parameters = {
|
||||
# Required
|
||||
country: 'US',
|
||||
year: 2016,
|
||||
# Optional
|
||||
# month: 7,
|
||||
# day: 4,
|
||||
# previous: true,
|
||||
# upcoming: true,
|
||||
# public: true,
|
||||
# pretty: true,
|
||||
# Required
|
||||
'country': 'US',
|
||||
'year': 2016,
|
||||
# Optional
|
||||
# 'month': 7,
|
||||
# 'day': 4,
|
||||
# 'previous': True,
|
||||
# 'upcoming': True,
|
||||
# 'public': True,
|
||||
# 'pretty': True,
|
||||
}
|
||||
|
||||
holidays = hapi.holidays(parameters);
|
||||
holidays = hapi.holidays(parameters)
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue