Skip to content

Commit

Permalink
Merge pull request #11 from jennyosato/development
Browse files Browse the repository at this point in the history
Fix token bug
  • Loading branch information
gray-adeyi authored Apr 30, 2023
2 parents 3b92e07 + f9cf7d3 commit 571830b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 24 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.pyc
.env
dist
dist
site
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ $ pip install pykuda2
```

## Documentation
You can find the documentation for this package [here]()
You can find the documentation for this package [here](https://gray-adeyi.github.io/pykuda2-docs/)
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ from pykuda2 import Kuda

# Fetch your credentials from your environment path
KUDA_EMAIL_ADDRESS = os.getenv("KUDA_EMAIL_ADDRESS")
KUDA_API_KEY = os.getenv("KUDA_EMAIL_ADDRESS")
KUDA_API_KEY = os.getenv("KUDA_API_KEY")

# Instantiate the Kuda API wrapper
kuda = Kuda(email=KUDA_EMAIL_ADDRESS, api_key=KUDA_API_KEY)
Expand Down Expand Up @@ -64,7 +64,7 @@ from fastapi import FastAPI

# Fetch your credentials from your environment path
KUDA_EMAIL_ADDRESS = os.getenv("KUDA_EMAIL_ADDRESS")
KUDA_API_KEY = os.getenv("KUDA_EMAIL_ADDRESS")
KUDA_API_KEY = os.getenv("KUDA_API_KEY")

# Instantiate the Kuda API wrapper
kuda = AsyncKuda(email=KUDA_EMAIL_ADDRESS, api_key=KUDA_API_KEY)
Expand Down
26 changes: 13 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pykuda2/kuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ def __init__(self, email: str, api_key: str, mode: Mode = Mode.DEVELOPMENT):
# a hacky solution to this issue. We use this `Kuda` wrapper to get the
# `access_token` and feed it to all these attributes, so they don't have
# to make a request to get the access token.
self.accounts._token = self._token
self.transactions._token = self._token
self.billing_and_betting._token = self._token
self.gift_cards._token = self._token
self.savings._token = self._token
self.cards._token = self._token
self.accounts._saved_token = self._token
self.transactions._saved_token = self._token
self.billing_and_betting._saved_token = self._token
self.gift_cards._saved_token = self._token
self.savings._saved_token = self._token
self.cards._saved_token = self._token


class AsyncKuda(BaseAsyncAPIWrapper):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pykuda2"
version = "0.1.0"
version = "0.1.1"
description = ""
authors = ["Jennifer <[email protected]>","Gbenga Adeyi <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 571830b

Please sign in to comment.