Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ Just import the client, create an instance and call the ``fetch_json`` method:
from freckle_client.client import FreckleClient

client = FreckleClient('account_name', 'api_token')
entries = self.fetch_json(
entries = client.fetch_json(
'entries',
query_params={
'per_page': 1000,
'search[from]': '2015-01-01',
'search[to]': '2015-01-31',
'search[projects]': [1423, 24545, ]),
'search[projects]': [1423, 24545, ],
}
)

Expand All @@ -46,13 +46,13 @@ Or if you want to use the V2 API:
from freckle_client.client import FreckleClientV2

client = FreckleClientV2('access_token')
entries = self.fetch_json(
entries = client.fetch_json(
'entries',
query_params={
'per_page': 1000,
'search[from]': '2015-01-01',
'search[to]': '2015-01-31',
'search[projects]': [1423, 24545, ]),
'search[projects]': [1423, 24545, ],
}
)

Expand Down