이 모듈은 보안 인가 플로우를 위한 OAuth1.0a 인증 기능을 제공합니다. 요청 토큰 생성, 인가 URL 생성, 액세스 토큰 교환 및 OAuth1 서명 생성을 포함합니다.Documentation Index
Fetch the complete documentation index at: https://generaltranslation.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
class xdk.oauth1_auth.OAuth1
매개변수
__init__
매개변수
API Key(Consumer Key)
API Secret(Consumer Secret)
OAuth 플로우를 위한 콜백 URL
이미 발급된 경우 사용할 Access Token
이미 발급된 경우 사용할 Access Token Secret
build_request_header
매개변수
HTTP 메서드(GET, POST 등).
요청 URL(쿼리 매개변수를 포함할 수 있음).
요청 본문(폼 인코딩된 문자열 또는 비어 있는 문자열).
반환 타입
str
get_access_token
매개변수
콜백 또는 PIN으로부터 받은 OAuth verifier 값입니다.
반환값
OAuth1AccessToken
OAuth1 인증 플로우에 사용할 인가 URL을 가져옵니다.
매개변수
“Log in with X” 플로우를 사용할지 여부입니다.
반환값
str
get_request_token
oauth_token과 oauth_token_secret이 포함된 요청 토큰(request token)을 반환합니다.
:rtype: OAuth1RequestToken
반환
OAuth1RequestToken
start_oauth_flow
매개변수
“Log in with X” 로그인 플로우를 사용할지 여부입니다.
반환값
str
class xdk.oauth1_auth.OAuth1AccessToken
매개변수
__init__
매개변수
액세스 토큰.
액세스 토큰 시크릿.
class xdk.oauth1_auth.OAuth1RequestToken
매개변수
__init__
매개변수
OAuth 토큰.
OAuth 토큰 시크릿.