@@ -19,7 +19,7 @@ Python library that simplifies obtaining data from API endpoints by converting t
1919![ Python] ( https://img.shields.io/badge/-Python-05122A?style=flat&logo=python )   ;
2020![ Docker] ( https://img.shields.io/badge/-Docker-05122A?style=flat&logo=docker )   ;
2121![ Poetry] ( https://img.shields.io/badge/-Poetry-05122A?style=flat&logo=poetry )   ;
22- ![ GitHub Actions] ( https://img.shields.io/badge/-GitHub_Actions-05122A?style=flat&logo=githubactions )   ;
22+ ![ GitHub Actions] ( https://img.shields.io/badge/-GitHub_Actions-05122A?style=flat&logo=githubactions )   ;
2323![ CodeCov] ( https://img.shields.io/badge/-CodeCov-05122A?style=flat&logo=codecov )   ;
2424![ pypi] ( https://img.shields.io/badge/-pypi-05122A?style=flat&logo=pypi )   ;
2525![ pandas] ( https://img.shields.io/badge/-pandas-05122A?style=flat&logo=pandas )   ;
@@ -49,29 +49,28 @@ from api_to_dataframe import ClientBuilder, RetryStrategies
4949# Create a client for simple ingest data from API (timeout 1 second)
5050client = ClientBuilder(endpoint = " https://api.example.com" )
5151
52- # if you can define timeout with LinearStrategy and set headers:
52+ # if you can define timeout with LINEAR_RETRY_STRATEGY and set headers:
5353headers = {
5454 " application_name" : " api_to_dataframe"
5555}
5656client = ClientBuilder(endpoint = " https://api.example.com"
57- ,retry_strategy = RetryStrategies.LinearStrategy
57+ ,retry_strategy = RetryStrategies.LINEAR_RETRY_STRATEGY
5858 ,connection_timeout = 2
5959 ,headers = headers)
6060
6161"""
62- NOTE : by default the quantity of retries is 3 and the time between retries is 1 second, but you can define manually, like this:
63-
62+ NOTE : by default the quantity of retries is 3 and the time between retries is 1 second, but you can define manually.
6463"""
6564
6665client = ClientBuilder(endpoint = " https://api.example.com"
67- ,retry_strategy = RetryStrategies.LinearStrategy
66+ ,retry_strategy = RetryStrategies.LINEAR_RETRY_STRATEGY
6867 ,connection_timeout = 10
6968 ,headers = headers
7069 ,retries = 5
7170 ,initial_delay = 10 )
72-
7371
74- # ## timeout, retry_strategy and headers are opcionals parameters
72+
73+ # ## timeout, retry_strategy and headers are opcionals parameters
7574
7675# Get data from the API
7776data = client.get_api_data()
0 commit comments