From 11f16deefbd80f9880c5d0f656eb1acdf8db8003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81?= Date: Wed, 17 Apr 2024 09:16:49 +0900 Subject: [PATCH] update UserAgent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ふぁ --- dist/compatible/openapi-3.0.yaml | 2 +- dist/compatible_discriminator/openapi-3.0.yaml | 2 +- dist/docs/openapi-3.0.yaml | 2 +- src/config/component/security_schemes.yaml | 4 ++-- test/python/test_serialize.py | 4 ++-- test/python/test_serialize_guest.py | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dist/compatible/openapi-3.0.yaml b/dist/compatible/openapi-3.0.yaml index 09ac0d7..810631a 100644 --- a/dist/compatible/openapi-3.0.yaml +++ b/dist/compatible/openapi-3.0.yaml @@ -3103,7 +3103,7 @@ components: type: apiKey UserAgent: description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/112.0.0.0 Safari/537.36 + like Gecko) Chrome/123.0.0.0 Safari/537.36 in: header name: user-agent type: apiKey diff --git a/dist/compatible_discriminator/openapi-3.0.yaml b/dist/compatible_discriminator/openapi-3.0.yaml index 6b9148b..580600c 100644 --- a/dist/compatible_discriminator/openapi-3.0.yaml +++ b/dist/compatible_discriminator/openapi-3.0.yaml @@ -3103,7 +3103,7 @@ components: type: apiKey UserAgent: description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/112.0.0.0 Safari/537.36 + like Gecko) Chrome/123.0.0.0 Safari/537.36 in: header name: user-agent type: apiKey diff --git a/dist/docs/openapi-3.0.yaml b/dist/docs/openapi-3.0.yaml index adcf344..f0befc2 100644 --- a/dist/docs/openapi-3.0.yaml +++ b/dist/docs/openapi-3.0.yaml @@ -3103,7 +3103,7 @@ components: type: apiKey UserAgent: description: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, - like Gecko) Chrome/112.0.0.0 Safari/537.36 + like Gecko) Chrome/123.0.0.0 Safari/537.36 in: header name: user-agent type: apiKey diff --git a/src/config/component/security_schemes.yaml b/src/config/component/security_schemes.yaml index 1fdcc2a..8b3d211 100644 --- a/src/config/component/security_schemes.yaml +++ b/src/config/component/security_schemes.yaml @@ -11,7 +11,7 @@ paths: required: true schema: type: string - default: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36" + default: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" description: "UserAgent, some APIs may be rejected if changed." - name: authorization in: header @@ -121,7 +121,7 @@ paths: components: securitySchemes: UserAgent: - description: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36" + description: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" in: header name: user-agent type: apiKey diff --git a/test/python/test_serialize.py b/test/python/test_serialize.py index 5dd7a67..624e4d3 100644 --- a/test/python/test_serialize.py +++ b/test/python/test_serialize.py @@ -7,9 +7,9 @@ import os import time import traceback import warnings +from enum import Enum from pathlib import Path -from enum import Enum import openapi_client as pt warnings.filterwarnings("ignore") @@ -219,7 +219,7 @@ if __name__ == "__main__": api_conf.access_token = "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA" api_client = pt.ApiClient(configuration=api_conf, cookie=cookies_str) - api_client.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36" + api_client.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" error_count = 0 diff --git a/test/python/test_serialize_guest.py b/test/python/test_serialize_guest.py index 1e26d03..40d1102 100644 --- a/test/python/test_serialize_guest.py +++ b/test/python/test_serialize_guest.py @@ -33,7 +33,7 @@ if __name__ == "__main__": ) api_conf.access_token = "AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA" api_client = pt.ApiClient(configuration=api_conf, cookie=cookies_str) - api_client.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36" + api_client.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" pt.TweetApi(api_client).get_user_tweets_with_http_info( **get_kwargs("UserTweets", {}),