Skip to content

Commit 8fcaba4

Browse files
avaidyanathaAbhi Vaidyanatha
and
Abhi Vaidyanatha
authored
Fix CDK speedrun stream stub (#5778)
* Fix CDK speedrun stream stub * Add start_date back Co-authored-by: Abhi Vaidyanatha <[email protected]>
1 parent c97798a commit 8fcaba4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/connector-development/tutorials/cdk-speedrun.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,13 @@ class SourcePythonHttpExample(AbstractSource):
9090
return True, None
9191

9292
def streams(self, config: Mapping[str, Any]) -> List[Stream]:
93-
# Parse the date from a string into a datetime object
93+
# Parse the date from a string into a datetime object.
9494
start_date = datetime.strptime(config["start_date"], "%Y-%m-%d")
95+
96+
# NoAuth just means there is no authentication required for this API and is included for completeness.
97+
# Skip passing an authenticator if no authentication is required.
98+
# Other authenticators are available for API token-based auth and Oauth2.
99+
auth = NoAuth()
95100
return [ExchangeRates(authenticator=auth, base=config["base"], start_date=start_date)]
96101
```
97102

0 commit comments

Comments
 (0)