Skip to content

Commit 1ee083a

Browse files
author
OneSignal
committed
Update Python API
1 parent 08163d9 commit 1ee083a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,12 @@ Please follow the [installation procedure](#installation--usage) and then run th
5959

6060
```python
6161
import onesignal
62+
from onesignal.api import default_api
6263

6364
# See configuration.py for a list of all supported configuration parameters.
65+
# Some of the OneSignal endpoints require USER_KEY bearer token for authorization as long as others require APP_KEY
66+
# (also knows as REST_API_KEY). We recommend adding both of them in the configuration page so that you will not need
67+
# to figure it yourself.
6468
configuration = onesignal.Configuration(
6569
app_key = "YOUR_APP_KEY",
6670
user_key = "YOUR_USER_KEY"

0 commit comments

Comments
 (0)