Skip to content

Commit 8659df2

Browse files
authored
Merge pull request #12 from fa0311/develop
Develop
2 parents f626e1a + 7b41ad9 commit 8659df2

72 files changed

Lines changed: 3993 additions & 21 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

twitter_openapi_python/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "twitter_openapi_python"
3-
version = "0.0.10"
3+
version = "0.0.11"
44
description = "Twitter OpenAPI"
55
authors = ["fa0311 <yuki@yuki0311.com>"]
66
license = "proprietary" # or "AGPL-3.0-only"
@@ -14,7 +14,7 @@ include = ["twitter_openapi_python/py.typed"]
1414
python = "^3.7"
1515
pydantic = "^1.10.5, <2"
1616

17-
twitter-openapi-python-generated = "0.0.6"
17+
twitter-openapi-python-generated = "0.0.7"
1818

1919
[tool.poetry.dev-dependencies]
2020

0 Bytes
Binary file not shown.

twitter_openapi_python/twitter_openapi_python/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def get_client_from_cookies(
122122
api_key.update({"AuthType": "OAuth2Session"})
123123
api_key.update({"CsrfToken": cookies["ct0"]})
124124

125-
if cookies.get("gt") is not None:
125+
if cookies.get("gt"):
126126
api_key.update({"GuestToken": cookies["gt"]})
127127

128128
api_conf = conf.Configuration(api_key=api_key)

twitter_openapi_python_generated/.openapi-generator/FILES

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
.travis.yml
55
README.md
66
docs/AdditionalMediaInfo.md
7+
docs/BirdwatchEntity.md
8+
docs/BirdwatchEntityRef.md
9+
docs/BirdwatchPivot.md
10+
docs/BirdwatchPivotFooter.md
11+
docs/BirdwatchPivotNote.md
12+
docs/BirdwatchPivotSubtitle.md
713
docs/BookmarksResponse.md
814
docs/BookmarksResponseData.md
915
docs/BookmarksTimeline.md
@@ -83,6 +89,12 @@ docs/MediaVideoInfo.md
8389
docs/MediaVideoInfoVariant.md
8490
docs/ModuleEntry.md
8591
docs/ModuleItem.md
92+
docs/NoteTweet.md
93+
docs/NoteTweetResult.md
94+
docs/NoteTweetResultData.md
95+
docs/NoteTweetResultMedia.md
96+
docs/NoteTweetResultRichText.md
97+
docs/NoteTweetResultRichTextTag.md
8698
docs/OneFactorLoginEligibility.md
8799
docs/Other200Response.md
88100
docs/OtherApi.md
@@ -125,6 +137,7 @@ docs/TimelineAddEntries.md
125137
docs/TimelineAddEntry.md
126138
docs/TimelineAddToModule.md
127139
docs/TimelineClearCache.md
140+
docs/TimelineCommunity.md
128141
docs/TimelineCoverBehavior.md
129142
docs/TimelineHalfCover.md
130143
docs/TimelineMessagePrompt.md
@@ -206,6 +219,12 @@ setup.py
206219
test-requirements.txt
207220
test/__init__.py
208221
test/test_additional_media_info.py
222+
test/test_birdwatch_entity.py
223+
test/test_birdwatch_entity_ref.py
224+
test/test_birdwatch_pivot.py
225+
test/test_birdwatch_pivot_footer.py
226+
test/test_birdwatch_pivot_note.py
227+
test/test_birdwatch_pivot_subtitle.py
209228
test/test_bookmarks_response.py
210229
test/test_bookmarks_response_data.py
211230
test/test_bookmarks_timeline.py
@@ -285,6 +304,12 @@ test/test_media_video_info.py
285304
test/test_media_video_info_variant.py
286305
test/test_module_entry.py
287306
test/test_module_item.py
307+
test/test_note_tweet.py
308+
test/test_note_tweet_result.py
309+
test/test_note_tweet_result_data.py
310+
test/test_note_tweet_result_media.py
311+
test/test_note_tweet_result_rich_text.py
312+
test/test_note_tweet_result_rich_text_tag.py
288313
test/test_one_factor_login_eligibility.py
289314
test/test_other200_response.py
290315
test/test_other_api.py
@@ -327,6 +352,7 @@ test/test_timeline_add_entries.py
327352
test/test_timeline_add_entry.py
328353
test/test_timeline_add_to_module.py
329354
test/test_timeline_clear_cache.py
355+
test/test_timeline_community.py
330356
test/test_timeline_cover_behavior.py
331357
test/test_timeline_half_cover.py
332358
test/test_timeline_message_prompt.py
@@ -419,6 +445,12 @@ twitter_openapi_python_generated/configuration.py
419445
twitter_openapi_python_generated/exceptions.py
420446
twitter_openapi_python_generated/models/__init__.py
421447
twitter_openapi_python_generated/models/additional_media_info.py
448+
twitter_openapi_python_generated/models/birdwatch_entity.py
449+
twitter_openapi_python_generated/models/birdwatch_entity_ref.py
450+
twitter_openapi_python_generated/models/birdwatch_pivot.py
451+
twitter_openapi_python_generated/models/birdwatch_pivot_footer.py
452+
twitter_openapi_python_generated/models/birdwatch_pivot_note.py
453+
twitter_openapi_python_generated/models/birdwatch_pivot_subtitle.py
422454
twitter_openapi_python_generated/models/bookmarks_response.py
423455
twitter_openapi_python_generated/models/bookmarks_response_data.py
424456
twitter_openapi_python_generated/models/bookmarks_timeline.py
@@ -497,6 +529,12 @@ twitter_openapi_python_generated/models/media_video_info.py
497529
twitter_openapi_python_generated/models/media_video_info_variant.py
498530
twitter_openapi_python_generated/models/module_entry.py
499531
twitter_openapi_python_generated/models/module_item.py
532+
twitter_openapi_python_generated/models/note_tweet.py
533+
twitter_openapi_python_generated/models/note_tweet_result.py
534+
twitter_openapi_python_generated/models/note_tweet_result_data.py
535+
twitter_openapi_python_generated/models/note_tweet_result_media.py
536+
twitter_openapi_python_generated/models/note_tweet_result_rich_text.py
537+
twitter_openapi_python_generated/models/note_tweet_result_rich_text_tag.py
500538
twitter_openapi_python_generated/models/one_factor_login_eligibility.py
501539
twitter_openapi_python_generated/models/other200_response.py
502540
twitter_openapi_python_generated/models/other_response.py
@@ -537,6 +575,7 @@ twitter_openapi_python_generated/models/timeline_add_entries.py
537575
twitter_openapi_python_generated/models/timeline_add_entry.py
538576
twitter_openapi_python_generated/models/timeline_add_to_module.py
539577
twitter_openapi_python_generated/models/timeline_clear_cache.py
578+
twitter_openapi_python_generated/models/timeline_community.py
540579
twitter_openapi_python_generated/models/timeline_cover_behavior.py
541580
twitter_openapi_python_generated/models/timeline_half_cover.py
542581
twitter_openapi_python_generated/models/timeline_message_prompt.py

twitter_openapi_python_generated/README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Twitter OpenAPI(Swagger) specification
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 0.0.1
7-
- Package version: 0.0.6
7+
- Package version: 0.0.7
88
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -247,6 +247,12 @@ Class | Method | HTTP request | Description
247247
## Documentation For Models
248248

249249
- [AdditionalMediaInfo](docs/AdditionalMediaInfo.md)
250+
- [BirdwatchEntity](docs/BirdwatchEntity.md)
251+
- [BirdwatchEntityRef](docs/BirdwatchEntityRef.md)
252+
- [BirdwatchPivot](docs/BirdwatchPivot.md)
253+
- [BirdwatchPivotFooter](docs/BirdwatchPivotFooter.md)
254+
- [BirdwatchPivotNote](docs/BirdwatchPivotNote.md)
255+
- [BirdwatchPivotSubtitle](docs/BirdwatchPivotSubtitle.md)
250256
- [BookmarksResponse](docs/BookmarksResponse.md)
251257
- [BookmarksResponseData](docs/BookmarksResponseData.md)
252258
- [BookmarksTimeline](docs/BookmarksTimeline.md)
@@ -325,6 +331,12 @@ Class | Method | HTTP request | Description
325331
- [MediaVideoInfoVariant](docs/MediaVideoInfoVariant.md)
326332
- [ModuleEntry](docs/ModuleEntry.md)
327333
- [ModuleItem](docs/ModuleItem.md)
334+
- [NoteTweet](docs/NoteTweet.md)
335+
- [NoteTweetResult](docs/NoteTweetResult.md)
336+
- [NoteTweetResultData](docs/NoteTweetResultData.md)
337+
- [NoteTweetResultMedia](docs/NoteTweetResultMedia.md)
338+
- [NoteTweetResultRichText](docs/NoteTweetResultRichText.md)
339+
- [NoteTweetResultRichTextTag](docs/NoteTweetResultRichTextTag.md)
328340
- [OneFactorLoginEligibility](docs/OneFactorLoginEligibility.md)
329341
- [Other200Response](docs/Other200Response.md)
330342
- [OtherResponse](docs/OtherResponse.md)
@@ -365,6 +377,7 @@ Class | Method | HTTP request | Description
365377
- [TimelineAddEntry](docs/TimelineAddEntry.md)
366378
- [TimelineAddToModule](docs/TimelineAddToModule.md)
367379
- [TimelineClearCache](docs/TimelineClearCache.md)
380+
- [TimelineCommunity](docs/TimelineCommunity.md)
368381
- [TimelineCoverBehavior](docs/TimelineCoverBehavior.md)
369382
- [TimelineHalfCover](docs/TimelineHalfCover.md)
370383
- [TimelineMessagePrompt](docs/TimelineMessagePrompt.md)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# BirdwatchEntity
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**from_index** | **int** | |
8+
**ref** | [**BirdwatchEntityRef**](BirdwatchEntityRef.md) | |
9+
**to_index** | **int** | |
10+
11+
## Example
12+
13+
```python
14+
from twitter_openapi_python_generated.models.birdwatch_entity import BirdwatchEntity
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of BirdwatchEntity from a JSON string
19+
birdwatch_entity_instance = BirdwatchEntity.from_json(json)
20+
# print the JSON string representation of the object
21+
print BirdwatchEntity.to_json()
22+
23+
# convert the object into a dict
24+
birdwatch_entity_dict = birdwatch_entity_instance.to_dict()
25+
# create an instance of BirdwatchEntity from a dict
26+
birdwatch_entity_form_dict = birdwatch_entity.from_dict(birdwatch_entity_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# BirdwatchEntityRef
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**type** | **str** | |
8+
**url** | **str** | |
9+
**url_type** | **str** | |
10+
11+
## Example
12+
13+
```python
14+
from twitter_openapi_python_generated.models.birdwatch_entity_ref import BirdwatchEntityRef
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of BirdwatchEntityRef from a JSON string
19+
birdwatch_entity_ref_instance = BirdwatchEntityRef.from_json(json)
20+
# print the JSON string representation of the object
21+
print BirdwatchEntityRef.to_json()
22+
23+
# convert the object into a dict
24+
birdwatch_entity_ref_dict = birdwatch_entity_ref_instance.to_dict()
25+
# create an instance of BirdwatchEntityRef from a dict
26+
birdwatch_entity_ref_form_dict = birdwatch_entity_ref.from_dict(birdwatch_entity_ref_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# BirdwatchPivot
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**destination_url** | **str** | |
8+
**footer** | [**BirdwatchPivotFooter**](BirdwatchPivotFooter.md) | |
9+
**icon_type** | **str** | |
10+
**note** | [**BirdwatchPivotNote**](BirdwatchPivotNote.md) | |
11+
**shorttitle** | **str** | |
12+
**subtitle** | [**BirdwatchPivotSubtitle**](BirdwatchPivotSubtitle.md) | |
13+
**title** | **str** | |
14+
**visual_style** | **str** | | [optional]
15+
16+
## Example
17+
18+
```python
19+
from twitter_openapi_python_generated.models.birdwatch_pivot import BirdwatchPivot
20+
21+
# TODO update the JSON string below
22+
json = "{}"
23+
# create an instance of BirdwatchPivot from a JSON string
24+
birdwatch_pivot_instance = BirdwatchPivot.from_json(json)
25+
# print the JSON string representation of the object
26+
print BirdwatchPivot.to_json()
27+
28+
# convert the object into a dict
29+
birdwatch_pivot_dict = birdwatch_pivot_instance.to_dict()
30+
# create an instance of BirdwatchPivot from a dict
31+
birdwatch_pivot_form_dict = birdwatch_pivot.from_dict(birdwatch_pivot_dict)
32+
```
33+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
34+
35+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# BirdwatchPivotFooter
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**entities** | [**List[BirdwatchEntity]**](BirdwatchEntity.md) | |
8+
**text** | **str** | |
9+
10+
## Example
11+
12+
```python
13+
from twitter_openapi_python_generated.models.birdwatch_pivot_footer import BirdwatchPivotFooter
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of BirdwatchPivotFooter from a JSON string
18+
birdwatch_pivot_footer_instance = BirdwatchPivotFooter.from_json(json)
19+
# print the JSON string representation of the object
20+
print BirdwatchPivotFooter.to_json()
21+
22+
# convert the object into a dict
23+
birdwatch_pivot_footer_dict = birdwatch_pivot_footer_instance.to_dict()
24+
# create an instance of BirdwatchPivotFooter from a dict
25+
birdwatch_pivot_footer_form_dict = birdwatch_pivot_footer.from_dict(birdwatch_pivot_footer_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# BirdwatchPivotNote
2+
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**rest_id** | **str** | |
8+
9+
## Example
10+
11+
```python
12+
from twitter_openapi_python_generated.models.birdwatch_pivot_note import BirdwatchPivotNote
13+
14+
# TODO update the JSON string below
15+
json = "{}"
16+
# create an instance of BirdwatchPivotNote from a JSON string
17+
birdwatch_pivot_note_instance = BirdwatchPivotNote.from_json(json)
18+
# print the JSON string representation of the object
19+
print BirdwatchPivotNote.to_json()
20+
21+
# convert the object into a dict
22+
birdwatch_pivot_note_dict = birdwatch_pivot_note_instance.to_dict()
23+
# create an instance of BirdwatchPivotNote from a dict
24+
birdwatch_pivot_note_form_dict = birdwatch_pivot_note.from_dict(birdwatch_pivot_note_dict)
25+
```
26+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
27+
28+

0 commit comments

Comments
 (0)