Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit 67bedbb

Browse files
authored
added themes reference
1 parent 49dbae8 commit 67bedbb

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Python Client wrapper for [Typeform API](https://developer.typeform.com/)
1313
- [Create Client](#typeformapi_key)
1414
- [Forms](#forms)
1515
- [Responses](#responses)
16+
- [Themes](#themes)
1617
- [Tests](#tests)
1718

1819
## Installation
@@ -151,6 +152,27 @@ result: str = responses.delete('abc123' 'token1')
151152
result: str = responses.delete('abc123' ['token2', 'token3'])
152153
```
153154

155+
### Themes
156+
157+
#### `themes.get(uid: str)`
158+
159+
Retrieves a theme by the given theme_id. [See docs](https://developer.typeform.com/create/reference/retrieve-theme/).
160+
161+
```python
162+
themes = Typeform('<api_key>').themes
163+
result: dict = themes.get('abc123')
164+
```
165+
166+
#### `themes.list(page: int = None, pageSize: int = None)`
167+
168+
Retrieves a list of JSON descriptions for all themes in your Typeform account (public and private). Themes are listed in reverse-chronological order based on the date you added them to your account.
169+
170+
```python
171+
themes = Typeform('<api_key>').themes
172+
result: dict = themes.list()
173+
```
174+
175+
154176
## Tests
155177

156178
Check typeform/test/fixtures.py to configure test run.

0 commit comments

Comments
 (0)